mirror of
https://git.proxmox.com/git/lxc
synced 2025-08-16 19:39:39 +00:00

No difference for preinst (besides lintian being happy without an extra override) and for postrm we get quite a bit of code handling cleanup of service and apparmor stuff on package purge, plus some sytemd daemon reload on remove. Looks clean enough to not cause any trouble and neither Fabian G. nor Wolfgang B. see (or remember) any reason against doing this. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
28 lines
536 B
Bash
28 lines
536 B
Bash
#! /bin/sh
|
|
|
|
set -e
|
|
|
|
# divert apparmor feature pinning file
|
|
# Debian 9.4+ pins to a kernel 4.9 feature set which breaks mount
|
|
# mediation, among other things
|
|
aa_feature_add_diversion() {
|
|
dpkg-divert --package lxc-pve --add --rename \
|
|
--divert /usr/share/apparmor-features/features.stock \
|
|
/usr/share/apparmor-features/features
|
|
}
|
|
|
|
case "$1" in
|
|
upgrade)
|
|
if dpkg --compare-versions "$2" 'lt' '2.1.1-3'; then
|
|
aa_feature_add_diversion
|
|
fi
|
|
;;
|
|
*)
|
|
aa_feature_add_diversion
|
|
;;
|
|
esac
|
|
|
|
#DEBHELPER#
|
|
|
|
exit 0
|