From: Antonio Alvarez Feijoo Date: Tue, 14 Dec 2021 11:14:41 +0000 (+0100) Subject: fix(fips): wrong error message X-Git-Tag: 056~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f10c483b6abcc8be42cf246bbdade264be68228;p=thirdparty%2Fdracut-ng.git fix(fips): wrong error message When /dev/urandom cannot be created, the error message displays /dev/random instead. --- diff --git a/modules.d/01fips/module-setup.sh b/modules.d/01fips/module-setup.sh index 37334b810..8860159d2 100755 --- a/modules.d/01fips/module-setup.sh +++ b/modules.d/01fips/module-setup.sh @@ -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 }