From 69d625039711686f9681dfa1a87e2cb23c0e95ff Mon Sep 17 00:00:00 2001 From: AngeD Date: Wed, 15 Mar 2023 16:54:53 +0100 Subject: [PATCH] fix: replace grub hook by bootctl --- rootfs/etc/pacman.d/hooks/95-grub.hook | 10 ---------- rootfs/etc/pacman.d/hooks/95-systemd-boot.hook | 9 +++++++++ 2 files changed, 9 insertions(+), 10 deletions(-) delete mode 100644 rootfs/etc/pacman.d/hooks/95-grub.hook create mode 100644 rootfs/etc/pacman.d/hooks/95-systemd-boot.hook diff --git a/rootfs/etc/pacman.d/hooks/95-grub.hook b/rootfs/etc/pacman.d/hooks/95-grub.hook deleted file mode 100644 index ca4acb2..0000000 --- a/rootfs/etc/pacman.d/hooks/95-grub.hook +++ /dev/null @@ -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 diff --git a/rootfs/etc/pacman.d/hooks/95-systemd-boot.hook b/rootfs/etc/pacman.d/hooks/95-systemd-boot.hook new file mode 100644 index 0000000..d65c027 --- /dev/null +++ b/rootfs/etc/pacman.d/hooks/95-systemd-boot.hook @@ -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