-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools: Conditionally install AppArmor profile in Debian/Ubuntu
Commit 5659be3 introduced an AppArmor profile for Ubuntu 24.04. However, loading that fails in Debian, as even unstable still has AppArmor 3.x, and that profile requires 4.x. This causes apparmor.service to fail to start after a reboot. ``` Installing new version of config file /etc/pam.d/cockpit ... AppArmor parser error for /etc/apparmor.d/cockpit-desktop in profile /etc/apparmor.d/cockpit-desktop at line 1: Could not open 'abi/4.0': No such file or directory ``` This was hidden before because the postinst ignored `apparmor_parser` errors: Refine the condition and make these fatal instead, so that we immediately spot bugs in CI. Conditionally install the AppArmor profile, and add transition code to remove the profile when upgrading from a broken version. https://bugs.debian.org/1072517
- Loading branch information
1 parent
2a1d8a8
commit 9aacc51
Showing
3 changed files
with
14 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters