mirror of
https://git.proxmox.com/git/pve-kernel-meta
synced 2025-04-28 13:09:00 +00:00
d/postrm: also move clean-up of links to new package
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
cb643ddf9e
commit
cca8eee7c6
20
debian/postrm
vendored
Executable file
20
debian/postrm
vendored
Executable file
@ -0,0 +1,20 @@
|
||||
#! /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#
|
Loading…
Reference in New Issue
Block a user