# 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
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}