From 0294a1db6c73b9efb0e071684acf85f49c3b3f22 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Sun, 4 Aug 2024 20:59:01 -0700 Subject: [PATCH] Check fips-mode-setup if enabled and stop if it is --- migrate2rocky/migrate2rocky9.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/migrate2rocky/migrate2rocky9.sh b/migrate2rocky/migrate2rocky9.sh index 1d2be16..d98ebba 100644 --- a/migrate2rocky/migrate2rocky9.sh +++ b/migrate2rocky/migrate2rocky9.sh @@ -273,6 +273,12 @@ pre_check () { 'migrate2rocky9. See the README file for details.' fi + if ! fips-mode-setup --check | grep -q 'is disabled'; then + exit_message \ +'Migration from a system that has FIPS mode enabled is not supported by '\ +'migrate2rocky9. Please disable FIPS mode before running migrate2rocky9.' + fi + dnf -y check || exit_message \ 'Errors found in dnf/rpm database. Please correct before running '\ 'migrate2rocky9.'