V字龍 (Vdragon) says to Ubuntu 台灣社群
sh case $1 in configure) bootloader_id="$(config_item GRUB_DISTRIBUTOR | tr A-Z a-z | \ cut -d' ' -f1)" if [ "$bootloader_id" ] && [ -d "/boot/efi/EFI/$bootloader_id" ]; then grub-install fi ;; esac