Author: baggins
Date: Thu Sep 22 17:45:03 2011
New Revision: 12350

Modified:
   rc-scripts/trunk/rc.d/rc.sysinit
Log:
- properly mount /run and put it into mtab


Modified: rc-scripts/trunk/rc.d/rc.sysinit
==============================================================================
--- rc-scripts/trunk/rc.d/rc.sysinit    (original)
+++ rc-scripts/trunk/rc.d/rc.sysinit    Thu Sep 22 17:45:03 2011
@@ -152,10 +152,6 @@
        fi
 }
 
-if [ -d /run ]; then
-       mount -n -t tmpfs run /run
-fi
-
 # boot logging to /var/log/boot.log. install showconsole package to get it.
 if [ -x /sbin/blogd ] && ! is_no "$RC_BOOTLOG"; then
        RC_BOOTLOG=1
@@ -164,6 +160,10 @@
 fi
 
 if ! is_yes "$VSERVER" ; then
+       if [ -d /run ]; then
+               is_fsmounted tmpfs /run || mount -n -t tmpfs run /run
+       fi
+
        # we need /proc mounted before everything
        is_fsmounted proc /proc || mount -n -o gid=17 -t proc /proc /proc
 
@@ -458,6 +458,10 @@
        # Enter root, /proc, /sys and other into mtab.
        mount -f /
        mount -f /proc
+       if is_fsmounted tmpfs /run; then
+               mount -f -t tmpfs run /run
+       fi
+
        if is_fsmounted usbfs /proc/bus/usb; then
                mount -f -t usbfs -o devgid=78,devmode=664 usbfs /proc/bus/usb
        fi
_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to