fix: replace grub hook by bootctl

This commit is contained in:
AngeD 2023-03-15 16:54:53 +01:00
parent eb4e0341b5
commit 69d6250397
2 changed files with 9 additions and 10 deletions

View File

@ -1,10 +0,0 @@
[Trigger]
Type = Package
Operation = Install
Operation = Upgrade
Target = linux*
[Action]
Description = Update grub config
When = PostTransaction
Exec = /usr/bin/grub-mkconfig -o /boot/grub/grub.cfg

View File

@ -0,0 +1,9 @@
[Trigger]
Type = Package
Operation = Upgrade
Target = systemd
[Action]
Description = Gracefully upgrading systemd-boot...
When = PostTransaction
Exec = /usr/bin/systemctl restart systemd-boot-update.service