]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut.sh: add /dev/random and /dev/urandom to static device nodes
authorHarald Hoyer <harald@redhat.com>
Wed, 18 Jan 2017 09:37:10 +0000 (10:37 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 18 Jan 2017 09:37:10 +0000 (10:37 +0100)
otherwise libgcrypt might complain

https://bugzilla.redhat.com/show_bug.cgi?id=1401444

dracut.sh

index 4f33d0a02385c5901fcb63c8bbf33d8a81a54f43..cd3dcfb267889ce5ca87e5a035a78af65ce6c2b9 100755 (executable)
--- a/dracut.sh
+++ b/dracut.sh
@@ -1392,6 +1392,8 @@ if [[ $kernel_only != yes ]]; then
         [ -c ${initdir}/dev/null ] || mknod ${initdir}/dev/null c 1 3
         [ -c ${initdir}/dev/kmsg ] || mknod ${initdir}/dev/kmsg c 1 11
         [ -c ${initdir}/dev/console ] || mknod ${initdir}/dev/console c 5 1
+        [ -c ${initdir}/dev/random ] || mknod ${initdir}/dev/random c 1 8
+        [ -c ${initdir}/dev/urandom ] || mknod ${initdir}/dev/urandom c 1 9
     fi
 fi