From a13f9efd3776af7c2d9fdb3489e066d472502f4e Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Fri, 16 Mar 2012 23:37:52 +0100 Subject: [PATCH] Drop into debug shell when files could not be copied into tmpfs --- ChangeLog | 4 ++++ defaults/linuxrc | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) 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} -- 2.26.2