mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-25 18:32:57 +02:00
mountkernfs: fix mount of /sys and /proc without initrd.
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user