Remove wrong dependency on initramfs-tools
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apparmor (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
High
|
Steve Langasek |
Bug Description
[SRU Justification]
In xenial and earlier, apparmor depends on initramfs-tools. In zesty and later, this dependency has been dropped, as explained in the Debian changelog for 2.9.0-3+exp1 and merged into Ubuntu in 2.10.95-4ubuntu1:
* Drop dependency from apparmor on initramfs-tools: the early modules
loading code that needed it was removed a while ago (Closes: #771240).
This is a wrong dependency in xenial as well, which also includes no early boot code. We should drop this dependency, to support building of images with initramfs-tools removed for systems that we know don't require an initramfs.
[Test case]
1. On a xenial default chroot/container install, try to run 'sudo apt purge initramfs-tools'.
2. Verify that this tries to remove apparmor.
3. Cancel the removal.
4. Install apparmor from xenial-proposed.
5. Run 'sudo apt purge initramfs-tools' again.
6. Verify that apparmor is not removed.
[Regression Potential]
If apparmor were somehow using initramfs-tools without it being obvious from the package contents, then removing initramfs-tools from the dependencies could in some rare corner cases cause misbehavior of the system. However, there are currently no Ubuntu images or stock system installs which do not pull in initramfs-tools by other paths (e.g. by way of the kernel packages) so this risk is minimal.
Changed in apparmor (Ubuntu): | |
status: | New → Fix Released |
Changed in apparmor (Ubuntu Xenial): | |
importance: | Undecided → High |
status: | New → In Progress |
assignee: | nobody → Steve Langasek (vorlon) |
description: | updated |
Hello Steve, or anyone else affected,
Accepted apparmor into xenial-proposed. The package will build now and be available at https:/ /launchpad. net/ubuntu/ +source/ apparmor/ 2.10.95- 0ubuntu2. 7 in a few hours, and then in the -proposed repository.
Please help us by testing this new package. See https:/ /wiki.ubuntu. com/Testing/ EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification- needed- xenial to verification- done-xenial. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification- failed- xenial. In either case, details of your testing will help us make a better decision.
Further information regarding the verification process can be found at https:/ /wiki.ubuntu. com/QATeam/ PerformingSRUVe rification . Thank you in advance!