/sys mount (for 2.6)

Pete Zaitcev zaitcev at redhat.com
Fri Jan 30 20:25:34 UTC 2004


Bill,

do you have initscripts which mount /sys automatically? If yes, please
send me an RPM version. So far all I tried didn't to it. This is what
I have in /etc/rc.d/rc.sysinit currently:

--- /mnt/alt/etc/rc.d/rc.sysinit.orig	2004-01-26 15:25:11.000000000 -0500
+++ /mnt/alt/etc/rc.d/rc.sysinit	2004-01-26 18:06:37.000000000 -0500
@@ -440,6 +440,12 @@
    fi
 fi
 
+# Mount /sys for future scripts (such as ctc)
+if grep -q "Linux version 2.6" /proc/version; then
+   echo "Mounting /sys"
+   mount -n -t sysfs none_sys /sys
+fi
+
 # Load modules (for backward compatibility with VARs)
 if [ -f /etc/rc.modules ]; then
 	/etc/rc.modules

I must be missing something?

BTW, I need /sys in order to bring up ctc with "echo 1 > /sys/..../online".
Everything else works just fine without /sys.

-- Pete





More information about the fedora-devel-list mailing list