]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(fips): wrong error message
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Tue, 14 Dec 2021 11:14:41 +0000 (12:14 +0100)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Wed, 2 Feb 2022 23:02:03 +0000 (23:02 +0000)
When /dev/urandom cannot be created, the error message displays /dev/random instead.

modules.d/01fips/module-setup.sh

index 37334b81080352ff8e0a5f0ea7bb21b491fd5b93..8860159d29ef991ed64bd91dcfefcf5989df9847 100755 (executable)
@@ -78,7 +78,7 @@ install() {
         }
     [ -c "${initdir}"/dev/urandom ] || mknod "${initdir}"/dev/urandom c 1 9 \
         || {
-            dfatal "Cannot create /dev/random"
+            dfatal "Cannot create /dev/urandom"
             dfatal "To create an initramfs with fips support, dracut has to run as root"
             return 1
         }