]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
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 1e5be0517c6bbf63d49fddbf2c65f10ff7767044..9cbceb4d065e97e26d806a9da7e0adc9546d349e 100644 (file)
@@ -21,12 +21,12 @@ case "${1}" in
 
                if ! mountpoint /proc &> /dev/null; then
                        boot_mesg -n " /proc" ${NORMAL}
 
                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}
                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}
                fi
 
                boot_mesg "" ${NORMAL}