summaryrefslogtreecommitdiffstats
path: root/rescue/tree/etc/rc.sysinit
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-04-13 15:29:38 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-04-13 15:29:38 +0000
commitf09bed7955fa0ebdbcb7b04322bb39a332b3653a (patch)
tree6b6a737a2ea20156644905266cfd6d6035d21e36 /rescue/tree/etc/rc.sysinit
parent570d68e3c8d9a798dc4499d1bcfa83b55a78b26f (diff)
downloaddrakx-f09bed7955fa0ebdbcb7b04322bb39a332b3653a.tar
drakx-f09bed7955fa0ebdbcb7b04322bb39a332b3653a.tar.gz
drakx-f09bed7955fa0ebdbcb7b04322bb39a332b3653a.tar.bz2
drakx-f09bed7955fa0ebdbcb7b04322bb39a332b3653a.tar.xz
drakx-f09bed7955fa0ebdbcb7b04322bb39a332b3653a.zip
mount /sys
Diffstat (limited to 'rescue/tree/etc/rc.sysinit')
-rwxr-xr-xrescue/tree/etc/rc.sysinit5
1 files changed, 5 insertions, 0 deletions
diff --git a/rescue/tree/etc/rc.sysinit b/rescue/tree/etc/rc.sysinit
index f2b8aa639..e228c91ba 100755
--- a/rescue/tree/etc/rc.sysinit
+++ b/rescue/tree/etc/rc.sysinit
@@ -17,6 +17,11 @@ mkdir /mnt /var/log
mkdir /proc
action "Mounting proc filesystem" mount -n -t proc /proc /proc
+if grep -q sysfs /proc/filesystems; then
+ mkdir /sys
+ action "Mounting sysfs on /sys" mount -t sysfs none /sys
+fi
+
>/etc/mtab
mount -f /
mount -f /proc