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

Closes #41038


(cherry picked from commit e631ef4f92)

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
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