Fail to a shell if boot device not found
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
This commit is contained in:
parent
45f1241d71
commit
dee0d28205
@ -75,6 +75,8 @@ run_hook ()
|
|||||||
|
|
||||||
if [ ${found} -eq 0 ]; then
|
if [ ${found} -eq 0 ]; then
|
||||||
echo "ERROR: cannot find boot device, cannot continue..."
|
echo "ERROR: cannot find boot device, cannot continue..."
|
||||||
|
echo " Falling back to interactive prompt"
|
||||||
|
PS1="ramfs$ " /bin/sh -i
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -85,7 +87,6 @@ run_hook ()
|
|||||||
base_img="/tmpfs/archiso.sqfs"
|
base_img="/tmpfs/archiso.sqfs"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
msg ":: Mounting squashfs image"
|
|
||||||
/bin/modprobe -q squashfs >/dev/null 2>&1
|
/bin/modprobe -q squashfs >/dev/null 2>&1
|
||||||
|
|
||||||
msg ":: Mounting root (union) filesystem"
|
msg ":: Mounting root (union) filesystem"
|
||||||
|
Loading…
Reference in New Issue
Block a user