mirror of
https://github.com/rocky-linux/rocky-tools.git
synced 2024-12-04 18:36:27 +00:00
Fix: remove openssl-fips-provider (#219)
* Fix: remove openssl-fips-provider * Check fips-mode-setup if enabled and stop if it is * add fips-mode-setup to bin list; use --is-enabled
This commit is contained in:
parent
21491cf161
commit
bccfbf6c7c
@ -273,6 +273,12 @@ pre_check () {
|
||||
'migrate2rocky9. See the README file for details.'
|
||||
fi
|
||||
|
||||
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.'
|
||||
fi
|
||||
|
||||
dnf -y check || exit_message \
|
||||
'Errors found in dnf/rpm database. Please correct before running '\
|
||||
'migrate2rocky9.'
|
||||
@ -326,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)
|
||||
@ -718,6 +725,9 @@ collect_system_info () {
|
||||
redhat-release
|
||||
redhat-release-eula
|
||||
)
|
||||
addl_pkg_removes=(
|
||||
openssl-fips-provider
|
||||
)
|
||||
|
||||
# Check to make sure that we don't already have a full or partial
|
||||
# RockyLinux install.
|
||||
|
Loading…
Reference in New Issue
Block a user