[Lunar-commits] <lunar-iso> etc: Create some default mknods to please udev
Stefan Wold
ratler at lunar-linux.org
Sun Mar 14 21:01:30 CET 2010
commit 563f5a427aa5af7f0390624b2fd3aa55c78e868d
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Sun Mar 14 21:01:30 2010 +0100
etc: Create some default mknods to please udev
---
scripts/etc | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/scripts/etc b/scripts/etc
index 31cb11e..05a64c9 100755
--- a/scripts/etc
+++ b/scripts/etc
@@ -21,7 +21,16 @@ cp $ISO_TARGET/etc/skel/.vimrc $ISO_TARGET/root/
mkdir -p $ISO_TARGET/var/lock/subsys
# /dev/null is required when some lunar core functions are called
-mknod -m 666 $ISO_TARGET/dev/null c 1 3
+# Also make sure to keep udev happy
+mknod -m 0666 $ISO_TARGET/dev/null c 1 3
+mknod -m 0600 $ISO_TARGET/dev/console c 5 1
+mknod -m 0666 $ISO_TARGET/dev/zero c 1 5
+mknod -m 0660 $ISO_TARGET/dev/loop0 b 7 0
+mknod -m 0660 $ISO_TARGET/dev/kmsg c 1 11
+mknod -m 0600 $ISO_TARGET/dev/ram0 b 1 0
+mknod -m 0600 $ISO_TARGET/dev/ram1 b 1 1
+ln -s ram1 $ISO_TARGET/dev/ram
+
# rerun ldconfig to make sure we're not stale
touch $ISO_TARGET/etc/ld.so.conf
More information about the Lunar-commits
mailing list