Drop into debug shell when files could not be copied into tmpfs

cleanup-cruft
Sebastian Pipping 13 years ago
parent adefd0fccc
commit a13f9efd37

@ -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

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

Loading…
Cancel
Save