Skip to content

Instantly share code, notes, and snippets.

@ursm
Created October 29, 2012 11:06
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save ursm/3972978 to your computer and use it in GitHub Desktop.
/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