]> git.ipfire.org Git - thirdparty/dracut.git/commit
01fips: turn info calls into fips_info calls
authorDaniel Molkentin <dmolkentin@suse.com>
Mon, 6 Jul 2020 14:36:42 +0000 (16:36 +0200)
committerDaniel Molkentin <daniel@molkentin.de>
Fri, 21 Aug 2020 13:56:53 +0000 (15:56 +0200)
commite096d861ed8d5956152aa0ba48ca17fb2de6efe0
tree72a99929677bc310e4ab80da7ba4a3077673c186
parentda4c9a950f339f2e87a021f7d060bf7ac07f4f00
01fips: turn info calls into fips_info calls

systemd lets stdout go to journal only. Usually, this is desired
behavior to ensure that plymouth does not get disrupted.

However in the 01fips case, the system has to halt when the integrity
check fails to satisfy FIPS requirements. So the user will not be able
to inspect the journal.

As this is special to the fips module, we introduce a fips_info() which
works like info(), but deviates the output to stderr when running with
systemd.

Reference: bsc#1164076
modules.d/01fips/fips.sh