dots/pacman-hooks/Desktop/98-secureboot-grub.hook
2022-04-15 22:51:51 -04:00

14 lines
440 B
Plaintext

[Trigger]
Operation = Install
Operation = Upgrade
Type = Package
Target = grub
[Action]
Description = Signing GRUB for SecureBoot
When = PostTransaction
Exec = /usr/bin/find /efi/ -name 'grubx64' -exec /usr/bin/sh -c 'if ! /usr/bin/sbverify --list {} 2>/dev/null | /usr/bin/grep -q "signature certificates"; then /usr/bin/sbsign --key /db.key --cert /db.crt --output {} {}; fi' \ ;
Depends = sbsigntools
Depends = findutils
Depends = grep