mirror of
https://github.com/rocky-linux/rocky-tools.git
synced 2024-12-28 20:50:54 +00:00
Check fips-mode-setup if enabled and stop if it is
This commit is contained in:
parent
39e55e304e
commit
0294a1db6c
1 changed files with 6 additions and 0 deletions
|
@ -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.'
|
||||
|
|
Loading…
Reference in a new issue