diff --git a/debi.sh b/debi.sh index 8b83930..a2f17ff 100755 --- a/debi.sh +++ b/debi.sh @@ -915,6 +915,7 @@ EOF # shellcheck disable=SC2016 echo 'zz_debi=/etc/default/grub.d/zz-debi.cfg; if [ -f "$zz_debi" ]; then . "$zz_debi"; fi' >> /etc/default/grub grub_cfg=/boot/grub2/grub.cfg + [ -d /sys/firmware/efi ] && grub_cfg=/boot/efi/EFI/*/grub.cfg grub2-mkconfig -o "$grub_cfg" elif command_exists grub-mkconfig; then tmp=$(mktemp)