summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--init6
-rw-r--r--install/base3
2 files changed, 6 insertions, 3 deletions
diff --git a/init b/init
index e58a587..27f43f2 100644
--- a/init
+++ b/init
@@ -11,6 +11,12 @@ if grep -q devtmpfs /proc/filesystems 2>/dev/null; then
/bin/mount -n -t devtmpfs udev /dev -o mode=0755,size=10M,nosuid
else
/bin/mount -n -t tmpfs udev /dev -o mode=0755,size=10M,nosuid
+ # We don't have devtmpfs, so add the most important standard devices
+ /bin/mknod /dev/null c 1 3
+ /bin/mknod /dev/zero c 1 5
+ /bin/mknod /dev/console c 5 1
+ # /dev/mem is needed if we want to load uvesafb before triggering uevents
+ /bin/mknod /dev/mem c 1 1
fi
read CMDLINE </proc/cmdline
diff --git a/install/base b/install/base
index ff1be88..a117020 100644
--- a/install/base
+++ b/install/base
@@ -13,10 +13,7 @@ install ()
add_dir "/usr/lib"
add_dir "/usr/sbin"
- add_device "/dev/null" c 1 3
- add_device "/dev/zero" c 1 5
add_device "/dev/console" c 5 1
- add_device "/dev/mem" c 1 1
add_binary /lib/initcpio/busybox /bin/busybox
add_binary /sbin/modprobe