pve-kernel-meta/debian/proxmox-default-kernel.postrm
Thomas Lamprecht 98b46d24ce install postinst/rm to proxmox-default-kernel
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-11-23 10:53:08 +01:00

21 lines
422 B
Bash
Executable File

#! /bin/sh
# Abort if any command returns an error value
set -e
case "$1" in
purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
# remove kernel symlinks
rm -f /boot/pve/vmlinuz || true
rm -f /boot/pve/initrd.img || true
rmdir --ignore-fail-on-non-empty /boot/pve/ || true
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
;;
esac
#DEBHELPER#