File tree Expand file tree Collapse file tree 3 files changed +7
-10
lines changed Expand file tree Collapse file tree 3 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -59,3 +59,8 @@ for file in $SQUASH_MNT/*; do
5959
6060 echo $mntdir >> $SQUASH_MNT_REC
6161done
62+
63+ exec /init.orig
64+
65+ echo " Something went wrong when trying to exec original init!"
66+ exit 1
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -48,11 +48,10 @@ installpost() {
4848 # Install required files for the squash image setup script.
4949 hostonly=" " instmods " loop" " squashfs" " overlay"
5050 inst_multiple modprobe mount mkdir ln echo
51- inst " $moddir " /setup-squash.sh /squash/setup-squash.sh
52- inst " $moddir " /clear-squash.sh /squash/clear-squash.sh
5351
5452 mv " $initdir " /init " $initdir " /init.orig
55- inst " $moddir " /init.sh " $initdir " /init
53+ inst " $moddir " /init-squash.sh /init
54+ inst " $moddir " /clear-squash.sh /squash/clear-squash.sh
5655
5756 # Keep systemctl outsite if we need switch root
5857 if [[ ! -f " $initdir /lib/dracut/no-switch-root" ]]; then
You can’t perform that action at this time.
0 commit comments