mountkernfs: fix mount of /sys and /proc without initrd.
authorArne Fitzenreiter <arne_f@ipfire.org>
Sun, 8 Dec 2013 15:07:35 +0000 (16:07 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 8 Dec 2013 15:07:35 +0000 (16:07 +0100)
src/initscripts/init.d/mountkernfs

index 1e5be05..9cbceb4 100644 (file)
@@ -21,12 +21,12 @@ case "${1}" in
 
                if ! mountpoint /proc &> /dev/null; then
                        boot_mesg -n " /proc" ${NORMAL}
-                       mount -n /proc || failed=1
+                       mount -n -t proc /proc /proc || failed=1
                fi
 
                if ! mountpoint /sys &> /dev/null; then
                        boot_mesg -n " /sys" ${NORMAL}
-                       mount -n /sys || failed=1
+                       mount -n -t sysfs /sys /sys || failed=1
                fi
 
                boot_mesg "" ${NORMAL}