summaryrefslogtreecommitdiffstats
path: root/debian/extra/kernel/postinst.d
diff options
context:
space:
mode:
Diffstat (limited to 'debian/extra/kernel/postinst.d')
-rwxr-xr-xdebian/extra/kernel/postinst.d/zz-systemd-boot11
1 files changed, 11 insertions, 0 deletions
diff --git a/debian/extra/kernel/postinst.d/zz-systemd-boot b/debian/extra/kernel/postinst.d/zz-systemd-boot
new file mode 100755
index 0000000..8901140
--- /dev/null
+++ b/debian/extra/kernel/postinst.d/zz-systemd-boot
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+test -x /usr/bin/bootctl || exit 0
+
+bootctl is-installed --quiet || exit 0
+
+echo "Installing kernel version $1 in systemd-boot..."
+
+kernel-install add "$1" "$2"