]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
rc.sysinit: make sure /proc is mounted first
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 30 May 2013 17:56:52 +0000 (17:56 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Thu, 30 May 2013 17:56:52 +0000 (17:56 +0000)
svn-id: @12666

rc.d/rc.sysinit

index 28ed57404e9df96e5973dd98f69067b07f2f1f89..96d734e7a49cfb675d3af50d0cae9b5b574fd66b 100755 (executable)
@@ -176,14 +176,14 @@ else
        RC_BOOTLOG=
 fi
 
-if ! is_yes "$VSERVER" ; then
+if ! is_yes "$VSERVER"; then
+       # we need /proc mounted before everything
+       is_fsmounted proc /proc || mount -n /proc || mount -n -o gid=17,hidepid=2 -t proc /proc /proc
+
        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 /proc || mount -n -o gid=17,hidepid=2 -t proc /proc /proc
-
        # Early sysctls
        sysctl -e -p /etc/sysctl.conf > /dev/null 2>&1
 
This page took 0.032664 seconds and 4 git commands to generate.