summaryrefslogtreecommitdiffstats
path: root/debian/extra/initramfs/post-update.d/systemd-boot
blob: 1cee51c5e3980d24812d10a282b4f48e1dcc10c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

set -eu

test -x /usr/bin/bootctl || exit 0

bootctl is-installed --quiet || exit 0

echo "Updating kernel version $1 in systemd-boot..."

kernel-install add "$1" "/boot/vmlinuz-$1" "$2"