Author: glen
Date: Thu Nov  1 03:06:20 2007
New Revision: 8934

Modified:
   rc-scripts/trunk/rc.d/rc.sysinit
Log:
- umount /initrd earlier, right after udev startup

Modified: rc-scripts/trunk/rc.d/rc.sysinit
==============================================================================
--- rc-scripts/trunk/rc.d/rc.sysinit    (original)
+++ rc-scripts/trunk/rc.d/rc.sysinit    Thu Nov  1 03:06:20 2007
@@ -191,6 +191,18 @@
 
        [ -x /sbin/start_udev ] && /sbin/start_udev
 
+       # Unmount the initrd, if necessary
+       if grep -q /initrd /proc/mounts 2>/dev/null && ! grep -q /initrd/loopfs 
/proc/mounts 2>/dev/null ; then
+               if [ -e /initrd/dev/.devfsd ]; then
+                       umount /initrd/dev
+               fi
+               if [ -e /initrd/dev/.devfsd ]; then
+                       umount /initrd/dev
+               fi
+               umount /initrd
+               /sbin/blockdev --flushbufs /dev/ram0 >/dev/null 2>&1
+       fi
+
        # /dev must be also mounted before everything but only if we want use 
them ;-)
        if is_yes "$MOUNT_DEVFS"; then
                run_cmd "Mounting Device Filesystem" mount -n -t devfs /dev /dev
@@ -382,15 +394,6 @@
                fi
        fi
 
-       # Unmount the initrd, if necessary
-       if LC_ALL=C grep -q /initrd /proc/mounts 2>/dev/null && ! LC_ALL=C grep 
-q /initrd/loopfs /proc/mounts 2>/dev/null ; then
-               if [ -e /initrd/dev/.devfsd ]; then
-                       umount /initrd/dev
-               fi
-               umount /initrd
-               /sbin/blockdev --flushbufs /dev/ram0 >/dev/null 2>&1
-       fi
-
        # Check for arguments
        if strstr "$cmdline" nopnp; then
                PNP=
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to