Create /dev/random and /dev/urandom in VMs

WWW::Curl needs this to prevent "Fatal: no entropy gathering module
detected".
This commit is contained in:
Eelco Dolstra 2012-08-27 12:22:41 -04:00
parent faf6ad8428
commit 395718e927

View File

@ -73,9 +73,11 @@ rec {
createDeviceNodes = dev:
''
mknod ${dev}/null c 1 3
mknod ${dev}/zero c 1 5
mknod ${dev}/tty c 5 0
mknod ${dev}/null c 1 3
mknod ${dev}/zero c 1 5
mknod ${dev}/random c 1 8
mknod ${dev}/urandom c 1 9
mknod ${dev}/tty c 5 0
. /sys/class/block/${hd}/uevent
mknod ${dev}/${hd} b $MAJOR $MINOR
'';