summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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