summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2012-05-17 12:42:53 +0100
committerRichard Maw <richard.maw@codethink.co.uk>2012-05-17 12:42:53 +0100
commitf14d723658bc09a9355c5c6b9c9273870a759785 (patch)
treef1ea354732e5b7097256cf5f83a3fa7bcaefb720
parent73d8b2456c598efaf5242d029d01750da4ee8445 (diff)
downloadfhs-dirs-f14d723658bc09a9355c5c6b9c9273870a759785.tar.gz
create-dev-noes: re-add urandom, full and zero
More devices are needed during building, they won't actually be needed in the final system image, because a devtmpfs is mounted over /dev by the kernel. urandom is needed by test suites and some cryptography stuff, like python's multiprocessing module and openssl random consumes entropy so isn't really safe to put in here zero and full are harmless and something may use them. console may no longer be needed, but there have been warnings that console and null are needed before udev can fill /dev, however this may no longer be necessary since the kernel has devtmpfs.
-rwxr-xr-xcreate-dev-nodes11
1 files changed, 9 insertions, 2 deletions
diff --git a/create-dev-nodes b/create-dev-nodes
index f9297d9..f84c98e 100755
--- a/create-dev-nodes
+++ b/create-dev-nodes
@@ -26,5 +26,12 @@ then
fi
DESTDIR=$1
-mknod -m 600 "$DESTDIR/dev/console" c 5 1
-mknod -m 666 "$DESTDIR/dev/null" c 1 3
+while read path mode type major minor; do
+ mknod -m "$mode" "$DESTDIR/$path" "$type" "$major" "$minor"
+done <<EOF
+/dev/console 600 c 5 1
+/dev/full 666 c 1 7
+/dev/null 666 c 1 3
+/dev/urandom 666 c 1 9
+/dev/zero 666 c 1 5
+EOF