From 5513e184a6e46030e3ae738ebc81da0bb88ce4fe Mon Sep 17 00:00:00 2001 From: Lilac Date: Mon, 15 Jan 2024 18:25:44 +0000 Subject: [PATCH] systemd-boot-pacman-hook: auto updated to 3-1 --- repo/systemd-boot-pacman-hook/PKGBUILD | 17 +++++++++++++++++ repo/systemd-boot-pacman-hook/systemd-boot.hook | 9 +++++++++ 2 files changed, 26 insertions(+) create mode 100644 repo/systemd-boot-pacman-hook/PKGBUILD create mode 100644 repo/systemd-boot-pacman-hook/systemd-boot.hook diff --git a/repo/systemd-boot-pacman-hook/PKGBUILD b/repo/systemd-boot-pacman-hook/PKGBUILD new file mode 100644 index 0000000..42a9850 --- /dev/null +++ b/repo/systemd-boot-pacman-hook/PKGBUILD @@ -0,0 +1,17 @@ +# Maintainer: Federico Di Pierro +# Maintainer: Sefa Eyeoglu + +pkgname=systemd-boot-pacman-hook +pkgver=3 +pkgrel=1 +pkgdesc="Pacman hook to upgrade systemd-boot after systemd upgrade." +arch=("any") +license=("GPL") +depends=('systemd') +source=(systemd-boot.hook) +md5sums=('cd8b1e530ce6f239923362492fda3f4f') + +package() { + install -m755 -d "${pkgdir}/usr/share/libalpm/hooks" + install -m644 "${srcdir}/systemd-boot.hook" "${pkgdir}/usr/share/libalpm/hooks/95-systemd-boot.hook" +} diff --git a/repo/systemd-boot-pacman-hook/systemd-boot.hook b/repo/systemd-boot-pacman-hook/systemd-boot.hook new file mode 100644 index 0000000..d65c027 --- /dev/null +++ b/repo/systemd-boot-pacman-hook/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