summaryrefslogtreecommitdiff
path: root/archiso/hooks
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2008-10-30 02:07:06 -0500
committerAaron Griffin <aaronmgriffin@gmail.com>2008-10-30 02:07:06 -0500
commitdee0d28205efd2ba5428095ec35f1ce239666bf3 (patch)
tree340de8665f5ee29fc60c8d02cd3d00fac5d9024b /archiso/hooks
parent45f1241d71de55c9ef2f82f828e81925a277dea5 (diff)
Fail to a shell if boot device not found
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'archiso/hooks')
-rw-r--r--archiso/hooks/archiso3
1 files changed, 2 insertions, 1 deletions
diff --git a/archiso/hooks/archiso b/archiso/hooks/archiso
index 1eb0832..f2b62fe 100644
--- a/archiso/hooks/archiso
+++ b/archiso/hooks/archiso
@@ -75,6 +75,8 @@ run_hook ()
if [ ${found} -eq 0 ]; then
echo "ERROR: cannot find boot device, cannot continue..."
+ echo " Falling back to interactive prompt"
+ PS1="ramfs$ " /bin/sh -i
exit 1
fi
@@ -85,7 +87,6 @@ run_hook ()
base_img="/tmpfs/archiso.sqfs"
fi
- msg ":: Mounting squashfs image"
/bin/modprobe -q squashfs >/dev/null 2>&1
msg ":: Mounting root (union) filesystem"