fixed loss of stage file after bootstrap

This commit is contained in:
2021-12-09 19:56:04 +01:00
parent e91a746a14
commit a2a63639b9

View File

@@ -167,6 +167,11 @@ chroot_bootstrap()
prnt I "Changing root and starting a fork of init.sh..."
chroot $CHROOT_PATH /bin/bash -c 'CHROOT_DONE=true; $tmpdir/init.sh $@'
# If stage file still exists we copy it to be able to resume later
if [[ -e $tmpdir/$(basename $STAGE_FILE) ]]; then
cp $tmpdir/$(basename $STAGE_FILE) $STAGE_FILE
fi
prnt I "Back to host system and clean up."
rm -rf $tmpdir
}
@@ -222,7 +227,7 @@ load_configuration()
if [[ -n $CONFFILES ]]; then
local f=
for f in $CONFFILES; do
prnt I "Loading $f manuelly specified."
prnt I "Loading $f manually specified."
if [[ -s $f ]]; then
. $f
else