From: Sebastian Pipping Date: Fri, 16 Mar 2012 22:40:14 +0000 (+0100) Subject: Drop into debug shell when squashfs could not be mounted X-Git-Tag: v3.4.26~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4ed04331a506926fde85d8a375e94039e368bdb7;p=genkernel.git Drop into debug shell when squashfs could not be mounted --- diff --git a/ChangeLog b/ChangeLog index 1d41a6f..c1f376d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ # Distributed under the GPL v2 # $Id$ + 16 Mar 2012; Sebastian Pipping defaults/initrd.scripts, + defaults/linuxrc: + Drop into debug shell when squashfs could not be mounted + 16 Mar 2012; Sebastian Pipping defaults/initrd.scripts, defaults/linuxrc: Drop into debug shell when files could not be copied into tmpfs diff --git a/defaults/linuxrc b/defaults/linuxrc index 226a903..5932024 100755 --- a/defaults/linuxrc +++ b/defaults/linuxrc @@ -627,7 +627,14 @@ then then if [ "${USE_AUFS_NORMAL}" != '1' ]; then 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 good_msg 'Mounting squashfs & aufs filesystems' setup_squashfs_aufs