Author: glen
Date: Thu Feb 23 14:57:15 2006
New Revision: 7003

Modified:
   rc-scripts/trunk/rc.d/rc.sysinit
Log:
Make /dev/cpuset dir for udev. Check /proc/mounts instead of /proc/filesystems 
when filling /etc/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 Feb 23 14:57:15 2006
@@ -165,6 +165,8 @@
 
        # cpuset support (mounted unconditionally, shouldn't be a problem)
        if grep -q cpuset /proc/filesystems 2>/dev/null ; then
+               # mkdir for udev (FIXME fix the udev instead)
+               mkdir -p /dev/cpuset 2>/dev/null
                mount -n -t cpuset none /dev/cpuset
        fi
 
@@ -411,19 +413,18 @@
        [ -f /proc/bus/usb/devices ] && mount -f -t usbfs usbfs /proc/bus/usb
        [ -e /dev/.devfsd ] && mount -f -t devfs devfs /dev
 
-       if grep -q sysfs /proc/filesystems 2>/dev/null ; then
+       if grep -q sysfs /proc/mounts 2>/dev/null; then
                mount -f -t sysfs sysfs /sys
-               if [ "$(kernelver)" -ge "002006014" ] && \
-                       grep -q securityfs /proc/filesystems 2>/dev/null ; then
+               if grep -q securityfs /proc/mounts 2>/dev/null ; then
                                mount -f -t securityfs securityfs 
/sys/kernel/security
                fi
        fi
 
-       if grep -q selinuxfs /proc/filesystems 2>/dev/null ; then
+       if grep -q selinuxfs /proc/mounts 2>/dev/null; then
                mount -f -t selinuxfs selinuxfs /selinux
        fi
 
-       if grep -q cpuset /proc/filesystems 2>/dev/null ; then
+       if grep -q cpuset /proc/mounts 2>/dev/null; then
                mount -f -t cpuset none /dev/cpuset
        fi
 
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to