]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- properly mount /run and put it into mtab
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 22 Sep 2011 15:45:03 +0000 (15:45 +0000)
committerJan Rękorajski <baggins@pld-linux.org>
Thu, 22 Sep 2011 15:45:03 +0000 (15:45 +0000)
svn-id: @12350

rc.d/rc.sysinit

index 9dd387c1aa39c297554fbf80e9200082f05d9922..39354c65507ee77b6d1ad89b7d73a435cde59c6b 100755 (executable)
@@ -152,10 +152,6 @@ check_root_fs() {
        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 @@ else
 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 @@ if ! is_yes "$VSERVER"; then
        # 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
This page took 0.194355 seconds and 4 git commands to generate.