From aff688f30c092289e841af911c731d38a95feea6 Mon Sep 17 00:00:00 2001 From: Peter Ajamian Date: Thu, 18 Nov 2021 14:31:33 +1300 Subject: [PATCH] grep is needed for all migrations. Move the check for grep to the main list of binaries instead of the ones just needed for EFI boot. --- migrate2rocky/migrate2rocky.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/migrate2rocky/migrate2rocky.sh b/migrate2rocky/migrate2rocky.sh index b95bb9f..4d6f3bc 100644 --- a/migrate2rocky/migrate2rocky.sh +++ b/migrate2rocky/migrate2rocky.sh @@ -230,10 +230,10 @@ bin_check() { local -a missing bins bins=( rpm dnf awk column tee tput mkdir cat arch sort uniq rmdir - rm head curl sha512sum mktemp systemd-detect-virt sed + rm head curl sha512sum mktemp systemd-detect-virt sed grep ) if [[ $update_efi ]]; then - bins+=(findmnt grub2-mkconfig efibootmgr grep mokutil lsblk) + bins+=(findmnt grub2-mkconfig efibootmgr mokutil lsblk) fi for bin in "${bins[@]}"; do if ! type "$bin" >/dev/null 2>&1; then