[readonly/geninitrd/devel: 208/334] For rootfs on NFS create /dev/urandom on initrd - used by dhcp client.
draenog
draenog at pld-linux.org
Sat Nov 2 19:29:01 CET 2013
commit 53623c906275a4816c89e32d2c145ee91eba3d8b
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Jun 9 18:11:40 2004 +0000
For rootfs on NFS create /dev/urandom on initrd - used by dhcp client.
svn-id: @4158
geninitrd | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/geninitrd b/geninitrd
index 3ee7a14..6104284 100755
--- a/geninitrd
+++ b/geninitrd
@@ -1030,6 +1030,7 @@ if is_yes "$usenfs" ; then
# use root=/dev/ram0 init=/linuxrc when starting kernel or you will
# have problems like init(XX) being child process of swapper(1).
[ -n "$verbose" ] && echo "Adding rootfs on NFS support to initrd (dhcp)"
+ mknod "$MNTIMAGE/dev/urandom" c 1 8
mkdir "$MNTIMAGE/newroot"
echo "ifconfig lo 127.0.0.1 up" >> "$s"
echo "route add -net 127.0.0.0 netmask 255.0.0.0 lo" >> "$s"
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/readonly/geninitrd.git/commitdiff/398807324938659207036e520c0950a61ef50c11
More information about the pld-cvs-commit
mailing list