SpectreOS/configs/pacman-hooks/grub.hook
2022-11-14 18:39:12 +00:00

16 lines
434 B
Text
Executable file

[Trigger]
Operation=Install
Operation=Upgrade
Operation=Remove
Type=Package
Target=grub
Target=linux
# Change the linux part above and in the Exec line if a different kernel is used
[Action]
Description=Update Grub Scriptes (snapshots)
Depends=mkinitcpio
When=PostTransaction
NeedsTargets
Exec=/bin/sh -c 'cp /opt/spectreos/configs/grub.d/10_linux /etc/grub.d/10_linux; grub-mkconfig -o /boot/grub/grub.cfg; /usr/bin/mkinitcpio -P'