Browse Source

base/init: mount virtual filesystems with the filesystem type as source

master
Harald Hoyer 14 years ago
parent
commit
f2c6909468
  1. 8
      modules.d/99base/init

8
modules.d/99base/init

@ -79,10 +79,10 @@ RD_DEBUG="" @@ -79,10 +79,10 @@ RD_DEBUG=""

# mount some important things
[ ! -d /proc/self ] && \
mount -t proc -o nosuid,noexec,nodev /proc /proc >/dev/null 2>&1
mount -t proc -o nosuid,noexec,nodev proc /proc >/dev/null 2>&1

[ ! -d /sys/kernel ] && \
mount -t sysfs -o nosuid,noexec,nodev /sys /sys >/dev/null 2>&1
mount -t sysfs -o nosuid,noexec,nodev sysfs /sys >/dev/null 2>&1

if [ -x /lib/systemd/systemd-timestamp ]; then
RD_TIMESTAMP=$(/lib/systemd/systemd-timestamp)
@ -101,9 +101,9 @@ fi @@ -101,9 +101,9 @@ fi

if ! ismounted /dev; then
# try to mount devtmpfs
if ! mount -t devtmpfs -o mode=0755,nosuid,noexec udev /dev >/dev/null 2>&1; then
if ! mount -t devtmpfs -o mode=0755,nosuid,noexec devtmpfs /dev >/dev/null 2>&1; then
# if it failed fall back to normal tmpfs
mount -t tmpfs -o mode=0755,nosuid udev /dev >/dev/null 2>&1
mount -t tmpfs -o mode=0755,nosuid tmpfs /dev >/dev/null 2>&1
# Make some basic devices first, let udev handle the rest
mknod -m 0666 /dev/null c 1 3
mknod -m 0666 /dev/ptmx c 5 2

Loading…
Cancel
Save