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.
This commit is contained in:
Peter Ajamian 2021-11-18 14:31:33 +13:00
parent fbac8d07a2
commit aff688f30c

View File

@ -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