[arch-projects] [mkinitcpio][PATCH] /dev: drop support for non-devtmpfs

Tom Gundersen teg at jklm.no
Thu Jan 12 18:57:38 EST 2012


udev does not support this as of udev-176, so there is no point in
pretending it will work.

This also drops devtmpfs_monuted=1, so any custom hooks that use this
would have to be updated (no official hooks are affected).

Signed-off-by: Tom Gundersen <teg at jklm.no>
---
 init |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/init b/init
index 8cf90b1..86a954b 100644
--- a/init
+++ b/init
@@ -5,18 +5,7 @@ PATH=/usr/bin
 
 mount -t proc proc /proc -o nosuid,noexec,nodev
 mount -t sysfs sys /sys -o nosuid,noexec,nodev
-if mount -n -t devtmpfs udev /dev -o mode=0755,nosuid; then
-  devtmpfs_mounted=1
-else
-  mount -n -t tmpfs udev /dev -o mode=0755,nosuid
-  devtmpfs_mounted=0
-  # We don't have devtmpfs, so add the most important standard devices
-  mknod /dev/null c 1 3
-  mknod /dev/zero c 1 5
-  mknod /dev/console c 5 1
-  # /dev/mem is needed if we want to load uvesafb before triggering uevents
-  mknod /dev/mem c 1 1
-fi
+mount -t devtmpfs dev /dev -o mode=0755,nosuid
 mount -t tmpfs run /run -o nosuid,nodev,mode=0755
 mkdir -m755 /run/initramfs
 
-- 
1.7.8.3



More information about the arch-projects mailing list