Skip to content

Commit

Permalink
fix(fips): wrong error message
Browse files Browse the repository at this point in the history
When /dev/urandom cannot be created, the error message displays /dev/random instead.
  • Loading branch information
aafeijoo-suse authored and johannbg committed Feb 2, 2022
1 parent bc4f196 commit 7f10c48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules.d/01fips/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 7f10c48

Please sign in to comment.