[Bug 1157746] Re: Old kernels are not being listed by autoremove (regression)
Steve J.
1157746 at bugs.launchpad.net
Wed Mar 20 17:19:13 UTC 2013
Hi Folks,
Looks like this is on my end. My organization uses FAI (fai-project.org)
to automate ubuntu installs, and it's installing the kernel packages so
that they are marked as manually installed (and later updates to the
kernel package don't change that). Adding a postinstall script to change
the flag to automatic makes the apt-auto-removal stuff work as expected.
** Changed in: aptdaemon (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to aptdaemon in Ubuntu.
https://bugs.launchpad.net/bugs/1157746
Title:
Old kernels are not being listed by autoremove (regression)
Status in “aptdaemon” package in Ubuntu:
Invalid
Bug description:
Hello,
A patch was released in this bug report, which added a script to mark
old/unused kernels as autoremoveable:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/923876
I've upgraded apt to version 0.8.16~exp12ubuntu10.10, and I see the
new addition of the /etc/kernel/postinst.d/apt-auto-removal script,
and it seems to be called correctly when upgrading, and it generates a
/etc/apt.conf.d/01-autoremove-kernels file as expected, with the
following contents:
// File autogenerated by /etc/kernel/postinst.d/apt-auto-removal, do not edit
APT
{
NeverAutoRemove
{
"^linux-image-3.2.0-38-generic$";
"^linux-image-extra-3.2.0-38-generic$";
"^linux-signed-image-3.2.0-38-generic$";
"^linux-backports-modules-.*-3.2.0-38-generic$";
"^linux-headers-3.2.0-38-generic$";
"^linux-image-3.2.0-39-generic$";
"^linux-image-extra-3.2.0-39-generic$";
"^linux-signed-image-3.2.0-39-generic$";
"^linux-backports-modules-.*-3.2.0-39-generic$";
"^linux-headers-3.2.0-39-generic$";
};
};
However, upon running 'apt-get autoremove' as suggested in the bug
report mentioned above, kernel versions prior to 3.2.0-38 are not
offered for removal. I see this on several Ubuntu hosts running
Precise (Ubuntu 12.04.2 LTS). Are we looking at some sort of
regression?
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/1157746/+subscriptions
More information about the foundations-bugs
mailing list