Package: initscripts Version: 2.86.ds1-56 Severity: minor Tags: patch User: [EMAIL PROTECTED] Usertags: origin-ubuntu intrepid ubuntu-patch
Hi! Please consider applying attached patch. In case your system gets hosed in some way, so that an essential mount point does not exist any more (/proc, /sys, etc.), it is guaranteed to not boot any more. The patch mkdirs these again on shutdown, so that the next boot has a better chance to succeed. I know, it's only a bandaid, but it might help some people. :-) Thanks, Martin -- Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
* debian/initscripts/etc/init.d/umountroot: mkdir a few essential
directories (/proc, /sys, /var/{run,lock}), right before mounting root
r/o. It is a convenient (and one of the very few possible) place to
ensure that the next boot will succeed.
--- sysvinit-2.86.ds1/debian/initscripts/etc/init.d/umountroot
+++ sysvinit-2.86.ds1/debian/initscripts/etc/init.d/umountroot
@@ -16,6 +16,14 @@
do_stop () {
[ "$VERBOSE" = no ] || log_action_begin_msg "Mounting root filesystem read-only"
+ # These directories must exist on the root filesystem as they are
+ # targets for system mountpoints. We've just unmounted all other
+ # filesystems, so either they are mounted now (in which case the
+ # mount point exists) or we can make the mountpoint.
+ for dir in /proc /sys /var/run /var/lock; do
+ mkdir -p $dir || true
+ done
+
MOUNT_FORCE_OPT=
[ "$(uname -s)" = "GNU/kFreeBSD" ] && MOUNT_FORCE_OPT=-f
# This:
signature.asc
Description: Digital signature
_______________________________________________ Pkg-sysvinit-devel mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/pkg-sysvinit-devel

