-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(fips): do not blindly remove /boot
The `mount_boot` method called from fips-noboot.sh in the pre-pivot hook blindly executes `rm -rf /boot` if there is no `boot=` command line parameter, without first checking that /boot is not already mounted by other means. feat(fips): add progress messages This allows to better understand at what point a FIPS integrity test failed. Signed-off-by: Raymund Will <[email protected]> fix(fips): only unmount /boot if it was mounted by the fips module The `do_fips` method should only unmount /boot if it was mounted in the `mount_boot` method. In addition, now the `mount_boot` method checks if /boot is already mounted. Signed-off-by: Raymund Will <[email protected]> fix(fips): move fips-boot script to pre-pivot This is needed in s390x to be able to use the same `boot=` command line parameter in grub and zipl. Otherwise, `boot=` would need to be added only to `grub.cfg` (not `/etc/default/grub` and thereby not to `/boot/zipl/config`). Signed-off-by: Raymund Will <[email protected]> (Cherry-picked commits: 91974e8ff116c7fd9f99963780dba501535700f5 a71e518fa1f14a9b96ae62ce90714ccd7d307d97 1cdb4cb8b5fb7f74e5be6998f9b561fbf73909e0 cd2a1d4571b2f768f2b67d03fd77191795042402) Resolves: RHEL-45913
- Loading branch information
1 parent
99c1c91
commit ab2711d
Showing
5 changed files
with
26 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters