From 1af486bfa08b4d0b38f54c11c9bb82249aa942fd Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Mon, 5 Aug 2024 01:31:54 -0700 Subject: [PATCH] add fips-mode-setup to bin list; use --is-enabled --- migrate2rocky/migrate2rocky9.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/migrate2rocky/migrate2rocky9.sh b/migrate2rocky/migrate2rocky9.sh index d98ebba..10b7854 100644 --- a/migrate2rocky/migrate2rocky9.sh +++ b/migrate2rocky/migrate2rocky9.sh @@ -273,7 +273,7 @@ pre_check () { 'migrate2rocky9. See the README file for details.' fi - if ! fips-mode-setup --check | grep -q 'is disabled'; then + if fips-mode-setup --is-enabled; then exit_message \ 'Migration from a system that has FIPS mode enabled is not supported by '\ 'migrate2rocky9. Please disable FIPS mode before running migrate2rocky9.' @@ -332,6 +332,7 @@ bin_check() { bins=( rpm dnf awk column tee tput mkdir cat arch sort uniq rmdir df rm head curl sha512sum mktemp systemd-detect-virt sed grep + fips-mode-setup ) if [[ $update_efi ]]; then bins+=(findmnt grub2-mkconfig efibootmgr mokutil lsblk)