fixed loss of stage file after bootstrap
This commit is contained in:
@@ -167,6 +167,11 @@ chroot_bootstrap()
|
|||||||
prnt I "Changing root and starting a fork of init.sh..."
|
prnt I "Changing root and starting a fork of init.sh..."
|
||||||
chroot $CHROOT_PATH /bin/bash -c 'CHROOT_DONE=true; $tmpdir/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."
|
prnt I "Back to host system and clean up."
|
||||||
rm -rf $tmpdir
|
rm -rf $tmpdir
|
||||||
}
|
}
|
||||||
@@ -222,7 +227,7 @@ load_configuration()
|
|||||||
if [[ -n $CONFFILES ]]; then
|
if [[ -n $CONFFILES ]]; then
|
||||||
local f=
|
local f=
|
||||||
for f in $CONFFILES; do
|
for f in $CONFFILES; do
|
||||||
prnt I "Loading $f manuelly specified."
|
prnt I "Loading $f manually specified."
|
||||||
if [[ -s $f ]]; then
|
if [[ -s $f ]]; then
|
||||||
. $f
|
. $f
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user