]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
Mount securityfs based on it's availability only.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 26 Jun 2011 10:48:48 +0000 (10:48 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 26 Jun 2011 10:48:48 +0000 (10:48 +0000)
svn-id: @12250

rc.d/rc.sysinit

index 510f29c9e683a0e77ec2ffb60c545b588fd3641d..a34f5c5246bb8c563460c230cd54db3498292858 100755 (executable)
@@ -172,9 +172,8 @@ if ! is_yes "$VSERVER" ; then
        # sysfs is also needed before any other things (under kernel > 2.5)
        if grep -q sysfs /proc/filesystems 2>/dev/null ; then
                is_fsmounted sysfs /sys || mount -n -o gid=17 -t sysfs sysfs /sys
-               if [ "$(kernelver)" -ge "002006014" ] && \
-                       grep -q securityfs /proc/filesystems 2>/dev/null ; then
-                               mount -n -o gid=17 -t securityfs securityfs /sys/kernel/security
+               if grep -q securityfs /proc/filesystems 2>/dev/null ; then
+                       mount -n -o gid=17 -t securityfs securityfs /sys/kernel/security
                fi
        fi
 
This page took 0.057474 seconds and 4 git commands to generate.