"sysfs" and the 2.6.0 kernel?
Robert P. J. Day
rpjday at mindspring.com
Sun Oct 5 14:12:46 UTC 2003
on to the next 2.6.0 kernel-related topic, which is support for the
"sysfs" filesystem. this looks fairly straightforward, but first a
general question -- is there any compelling application for this
filesystem. it's cute, sure, but is anyone putting it to practical use?
just curious. so can anyone confirm the details of the following?
"sysfs" support is already compiled into the kernel, and you can create
a mount point and mount it at any time with:
# mkdir /sys
# nount -t sysfs sysfs /sys
then check out /sys.
to make this feature permanent, it *seems* like you need to do some
combination of the following:
1) create the mount point (mkdir /sys)
2) add an entry to /etc/fstab
none /sys sysfs defaults 0 0
3) make some changes to /etc/rc.sysinit
add this:
mount -n -t proc /proc /proc
+mount -n -t sysfs sysfs /sys
and this:
mount -f /
mount -f /proc
+mount -f /sys
then change all occurrences of "/proc/bus/usb" to "/sys/bus/usb"
4) make a change to /etc/init.d/halt:
-awk '$2 ~ /^\/$|^\/proc|^\/dev/{next}
+awk '$2 ~ /^\/$|^\/proc|^\/sys|^\/dev/{next}
AFAICT, that's all that needs to be done, although during the
boot process, there are some depmod errors based on looking in
the old location, /proc/bus/usb, and i'm not sure what to do
about those.
comments/clarifications on the above?
rday
More information about the fedora-test-list
mailing list