summaryrefslogtreecommitdiffstats
path: root/debian/extra/kernel/postrm.d/zz-systemd-boot
blob: 4db5e51dc84ce5e27d322549149d476269d7ed5d (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

set -e

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

bootctl is-installed --quiet || exit 0

echo "Removing kernel version $1 from systemd-boot..."

kernel-install remove "$1"