fix: Exit when pivot_root fails

This commit is contained in:
ptrcnull 2021-12-29 04:57:03 +01:00
parent f51ae2b97d
commit 45c84c281a

View file

@ -55,7 +55,7 @@ mount -t proc proc proc
cp /etc/resolv.conf etc/resolv.conf cp /etc/resolv.conf etc/resolv.conf
echo ' echo '
pivot_root . old_root pivot_root . old_root || exit 1
rm second_stage.sh rm second_stage.sh
apk add alpine-base util-linux-misc syslinux gdb procps apk add alpine-base util-linux-misc syslinux gdb procps