Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
/etc/kernel/postinst.d/efi
#!/bin/sh
set -e
if [ ! -d /boot/efi ]; then
exit 0
fi
if ! mountpoint /boot/efi > /dev/null; then
mount /boot/efi
fi
install --backup=simple --suffix=.old --verbose $2 /boot/efi/efi/boot/bootx64.efi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment