Drop into debug shell when files could not be copied into tmpfs
authorSebastian Pipping <sebastian@pipping.org>
Fri, 16 Mar 2012 22:37:52 +0000 (23:37 +0100)
committerSebastian Pipping <sebastian@pipping.org>
Fri, 16 Mar 2012 22:37:52 +0000 (23:37 +0100)
ChangeLog
defaults/linuxrc

index 4a306aee0c011fbb7f7826794b645e8a9cb014d0..1d41a6fb84da8ae753ac32a1e63e35c832097144 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,10 @@
 # Distributed under the GPL v2
 # $Id$
 
+  16 Mar 2012; Sebastian Pipping <sping@gentoo.org> defaults/initrd.scripts,
+  defaults/linuxrc:
+  Drop into debug shell when files could not be copied into tmpfs
+
   16 Mar 2012; Sebastian Pipping <sping@gentoo.org> defaults/initrd.scripts,
   defaults/linuxrc:
   Improve handling of missing /etc/fstab
index 34f1d699987a00ceb2550afaee6f719183b63e47..226a9032c6508f01ad6fe256b1f050fa8a00af3a 100755 (executable)
@@ -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}