From f14d723658bc09a9355c5c6b9c9273870a759785 Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Thu, 17 May 2012 12:42:53 +0100 Subject: 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. --- create-dev-nodes | 11 +++++++++-- 1 file 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 <