#! /bin/sh set -e config_item () { if [ -f /etc/default/grub ]; then . /etc/default/grub || return for x in /etc/default/grub.d/*.cfg; do if [ -e "$x" ]; then . "$x" fi done fi eval echo "\$$1" } case $1 in configure) target=x86_64-efi # Check /boot/grub to see if we previously installed to an ESP. We don't # want to trigger the install code just by installing the package, # normally the installer installs grub itself first. if test -e /boot/grub/$target/core.efi; then /usr/share/grub/grub-check-signatures /usr/lib/grub/grub-multi-install --target=$target fi ;; esac exit 0