aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2004-01-28 06:28:44 +0000
committerBill Nottingham <notting@redhat.com>2004-01-28 06:28:44 +0000
commit3e71816595d8cb5d96a4279f972650fa7b88979f (patch)
tree14cd39fac9277464996073979f4942def39fd04f
parent04adea8a2a33824739e6e3690880ff863c1d41da (diff)
downloadinitscripts-3e71816595d8cb5d96a4279f972650fa7b88979f.tar
initscripts-3e71816595d8cb5d96a4279f972650fa7b88979f.tar.gz
initscripts-3e71816595d8cb5d96a4279f972650fa7b88979f.tar.bz2
initscripts-3e71816595d8cb5d96a4279f972650fa7b88979f.tar.xz
initscripts-3e71816595d8cb5d96a4279f972650fa7b88979f.zip
mount sysfs. throw away error if it fails (2.4 kernels)
-rwxr-xr-xrc.d/rc.sysinit4
1 files changed, 3 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 3952ec36..02049bd4 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -21,8 +21,9 @@ if [ -z "$HOSTNAME" -o "$HOSTNAME" = "(none)" ]; then
HOSTNAME=localhost
fi
-# Mount /proc (done here so volume labels can work with fsck)
+# Mount /proc and /sys (done here so volume labels can work with fsck)
mount -n -t proc /proc /proc
+mount -n -t sysfs /sys /sys >/dev/null 2>&1
. /etc/init.d/functions
@@ -373,6 +374,7 @@ rm -f /etc/mtab~ /etc/mtab~~
# Enter root, /proc and (potentially) /proc/bus/usb and devfs into mtab.
mount -f /
mount -f /proc
+mount -f /sys >/dev/null 2>&1
mount -f /dev/pts
[ -f /proc/bus/usb/devices ] && mount -f -t usbdevfs usbdevfs /proc/bus/usb
[ -e /dev/.devfsd ] && mount -f -t devfs devfs /dev