]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
- read /proc/cmdline after /proc mount
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 1 Nov 2007 02:53:59 +0000 (02:53 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Thu, 1 Nov 2007 02:53:59 +0000 (02:53 +0000)
svn-id: @8940

rc.d/rc.sysinit

index 6f30288aca239c627b79698e0608ab6b3381a17a..cd1c6e16a8594bc5f7e61271d3c3839acb148511 100755 (executable)
@@ -36,9 +36,6 @@ fi
 
 CONSOLE_LOGLEVEL=1
 
-# Only read this once.
-cmdline=$(cat /proc/cmdline)
-
 # Read functions
 . /etc/rc.d/init.d/functions
 
@@ -96,6 +93,9 @@ if ! is_yes "$VSERVER" ; then
        # we need /proc mounted before everything
        mount -n -o gid=17 -t proc /proc /proc
 
+       # Only read this once.
+       cmdline=$(cat /proc/cmdline)
+
        # sysfs is also needed before any other things (under kernel > 2.5)
        if grep -q sysfs /proc/filesystems 2>/dev/null ; then
                mount -n -o gid=17 -t sysfs sysfs /sys
This page took 0.039052 seconds and 4 git commands to generate.