From: Sebastian Pipping Date: Fri, 16 Mar 2012 22:37:52 +0000 (+0100) Subject: Drop into debug shell when files could not be copied into tmpfs X-Git-Tag: v3.4.26~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a13f9efd3776af7c2d9fdb3489e066d472502f4e;p=genkernel.git Drop into debug shell when files could not be copied into tmpfs --- diff --git a/ChangeLog b/ChangeLog index 4a306ae..1d41a6f 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 files could not be copied into tmpfs + 16 Mar 2012; Sebastian Pipping defaults/initrd.scripts, defaults/linuxrc: Improve handling of missing /etc/fstab diff --git a/defaults/linuxrc b/defaults/linuxrc index 34f1d69..226a903 100755 --- a/defaults/linuxrc +++ b/defaults/linuxrc @@ -701,7 +701,10 @@ then good_msg "Copying read-write image contents to tmpfs" # Copy over stuff that should be writable - (cd "${NEW_ROOT}/${FS_LOCATION}"; cp -a ${ROOT_TREES} "${NEW_ROOT}") + (cd "${NEW_ROOT}/${FS_LOCATION}"; cp -a ${ROOT_TREES} "${NEW_ROOT}") || { + bad_msg "Copying failed, dropping into a shell." + do_rundebugshell + } # Now we do the links. for x in ${ROOT_LINKS}