sd-boot: exit early in initramfs and kernel hook scripts if package is removed but not purged

This commit is contained in:
Michael Biebl
2022-06-28 14:33:34 +02:00
parent 9a6d87f1c6
commit cceab74398
3 changed files with 6 additions and 0 deletions
+2
View File
@@ -2,6 +2,8 @@
set -eu
test -x /usr/bin/bootctl || exit 0
bootctl is-installed --quiet || exit 0
echo "Updating kernel version $1 in systemd-boot..."
+2
View File
@@ -2,6 +2,8 @@
set -e
test -x /usr/bin/bootctl || exit 0
bootctl is-installed --quiet || exit 0
echo "Installing kernel version $1 in systemd-boot..."
+2
View File
@@ -2,6 +2,8 @@
set -e
test -x /usr/bin/bootctl || exit 0
bootctl is-installed --quiet || exit 0
echo "Removing kernel version $1 from systemd-boot..."