]> git.proxmox.com Git - systemd.git/commitdiff
systemd-boot: update on package upgrade, if installed
authorLuca Boccassi <bluca@debian.org>
Sun, 12 Feb 2023 12:44:56 +0000 (12:44 +0000)
committerLuca Boccassi <bluca@debian.org>
Tue, 14 Feb 2023 15:34:31 +0000 (15:34 +0000)
debian/systemd-boot.postinst [new file with mode: 0644]

diff --git a/debian/systemd-boot.postinst b/debian/systemd-boot.postinst
new file mode 100644 (file)
index 0000000..77803ab
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = configure ] && [ -n "$2" ] && bootctl is-installed --quiet; then
+    bootctl update --graceful
+fi
+
+#DEBHELPER#