mirror of
https://github.com/rocky-linux/rocky-tools.git
synced 2024-11-27 23:46:25 +00:00
add fips-mode-setup to bin list; use --is-enabled
This commit is contained in:
parent
0294a1db6c
commit
1af486bfa0
@ -273,7 +273,7 @@ pre_check () {
|
|||||||
'migrate2rocky9. See the README file for details.'
|
'migrate2rocky9. See the README file for details.'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! fips-mode-setup --check | grep -q 'is disabled'; then
|
if fips-mode-setup --is-enabled; then
|
||||||
exit_message \
|
exit_message \
|
||||||
'Migration from a system that has FIPS mode enabled is not supported by '\
|
'Migration from a system that has FIPS mode enabled is not supported by '\
|
||||||
'migrate2rocky9. Please disable FIPS mode before running migrate2rocky9.'
|
'migrate2rocky9. Please disable FIPS mode before running migrate2rocky9.'
|
||||||
@ -332,6 +332,7 @@ bin_check() {
|
|||||||
bins=(
|
bins=(
|
||||||
rpm dnf awk column tee tput mkdir cat arch sort uniq rmdir df
|
rpm dnf awk column tee tput mkdir cat arch sort uniq rmdir df
|
||||||
rm head curl sha512sum mktemp systemd-detect-virt sed grep
|
rm head curl sha512sum mktemp systemd-detect-virt sed grep
|
||||||
|
fips-mode-setup
|
||||||
)
|
)
|
||||||
if [[ $update_efi ]]; then
|
if [[ $update_efi ]]; then
|
||||||
bins+=(findmnt grub2-mkconfig efibootmgr mokutil lsblk)
|
bins+=(findmnt grub2-mkconfig efibootmgr mokutil lsblk)
|
||||||
|
Loading…
Reference in New Issue
Block a user