Drop into debug shell when squashfs could not be mounted

cleanup-cruft
Sebastian Pipping 13 years ago
parent a13f9efd37
commit 4ed04331a5

@ -5,6 +5,10 @@
# Distributed under the GPL v2 # Distributed under the GPL v2
# $Id$ # $Id$
16 Mar 2012; Sebastian Pipping <sping@gentoo.org> defaults/initrd.scripts,
defaults/linuxrc:
Drop into debug shell when squashfs could not be mounted
16 Mar 2012; Sebastian Pipping <sping@gentoo.org> defaults/initrd.scripts, 16 Mar 2012; Sebastian Pipping <sping@gentoo.org> defaults/initrd.scripts,
defaults/linuxrc: defaults/linuxrc:
Drop into debug shell when files could not be copied into tmpfs Drop into debug shell when files could not be copied into tmpfs

@ -627,7 +627,14 @@ then
then then
if [ "${USE_AUFS_NORMAL}" != '1' ]; then if [ "${USE_AUFS_NORMAL}" != '1' ]; then
good_msg 'Mounting squashfs filesystem' good_msg 'Mounting squashfs filesystem'
mount -t squashfs -o loop,ro "${CDROOT_PATH}/${LOOPEXT}${LOOP}" "${NEW_ROOT}/mnt/livecd" mount -t squashfs -o loop,ro "${CDROOT_PATH}/${LOOPEXT}${LOOP}" "${NEW_ROOT}/mnt/livecd" || {
bad_msg "Squashfs filesystem could not be mounted, dropping into shell."
if [ -e /proc/filesystems ]; then
fgrep -q squashfs /proc/filesystems || \
bad_msg "HINT: Your kernel does not know filesystem \"squashfs\"."
fi
do_rundebugshell
}
else else
good_msg 'Mounting squashfs & aufs filesystems' good_msg 'Mounting squashfs & aufs filesystems'
setup_squashfs_aufs setup_squashfs_aufs

Loading…
Cancel
Save