Remove /etc/system-fips file before executing fips-mode-setup

Closes #41038


(cherry picked from commit e631ef4f92683b073f9cac9ae0f55ac0a3483187)

Signed-off-by: rmartinc <rmartinc@redhat.com>
This commit is contained in:
Ricardo Martin 2025-07-10 13:38:23 +02:00 committed by GitHub
parent 3121b9d334
commit ee63430c99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,6 @@
#!/bin/bash -x
rm -f /etc/system-fips
dnf install -y java-21-openjdk-devel
fips-mode-setup --enable --no-bootcfg
fips-mode-setup --is-enabled

View File

@ -1,5 +1,6 @@
#!/bin/bash
rm -f /etc/system-fips
dnf install -y java-21-openjdk-devel crypto-policies-scripts
fips-mode-setup --enable --no-bootcfg
fips-mode-setup --is-enabled