#3222 Issue closed: prep/default/400_save_directories.sh must mkdir VAR_DIR/recovery

Labels: bug

jsmeix opened issue at 2024-05-15 14:24:

See
https://github.com/rear/rear/pull/3175#issuecomment-2112594449

When "rear mkrescue" is run for the very first time
prep/default/400_save_directories.sh
fails with something like
(ReaR debug log file excerpts)

... Including prep/default/400_save_directories.sh
... Entering debugscript mode via 'set -x'.
+ source ...usr/share/rear/prep/default/400_save_directories.sh
++ local directories_permissions_owner_group_file=...var/lib/rear/recovery/directories_permissions_owner_group
++ :
...usr/share/rear/prep/default/400_save_directories.sh: line 12: ...var/
lib/rear/recovery/directories_permissions_owner_group: No such file or directory

because $VAR_DIR/recovery/ is not yet created
when prep/default/400_save_directories.sh runs
because $VAR_DIR/recovery/ gets created later in
layout/save/GNU/Linux/100_create_layout_file.sh
(the 'prep' stage runs before the 'layout/save' stage).


[Export of Github issue for rear/rear.]