mirror of
https://git.proxmox.com/git/systemd
synced 2026-08-26 11:50:15 +00:00
sd-boot: exit early in initramfs and kernel hook scripts if package is removed but not purged
This commit is contained in:
@@ -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
@@ -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
@@ -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..."
|
||||
|
||||
Reference in New Issue
Block a user