[opensuse-factory] Purge-kernels not working?
Hi there Given TW20200802 (with the kernel:stable repo enabled), I have a bunch of old kernels even though 'multiversion.kernels = latest,running" is "enabled" in /etc/zypp/zypp.conf. As a matter of fact, 'sudo zypper purge-kernels' does not have any effect. The same issue seems to apply to Leap 15.2. What do I miss? Thx. Regards, Frank -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Citeren Frank Krüger <fkrueger@mailbox.org>:
Hi there
Given TW20200802 (with the kernel:stable repo enabled), I have a bunch of old kernels even though 'multiversion.kernels = latest,running" is "enabled" in /etc/zypp/zypp.conf. As a matter of fact, 'sudo zypper purge-kernels' does not have any effect. The same issue seems to apply to Leap 15.2.
What do I miss? Thx.
This is a systemd service for a while already: systemctl enable purge-kernels.service will run it at boot as previously was the case before this change.
Regards, Frank
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Am 04.08.20 um 19:49 schrieb Arjen de Korte:
Citeren Frank Krüger <fkrueger@mailbox.org>:
Hi there
Given TW20200802 (with the kernel:stable repo enabled), I have a bunch of old kernels even though 'multiversion.kernels = latest,running" is "enabled" in /etc/zypp/zypp.conf. As a matter of fact, 'sudo zypper purge-kernels' does not have any effect. The same issue seems to apply to Leap 15.2.
What do I miss? Thx.
This is a systemd service for a while already:
systemctl enable purge-kernels.service
It was enabled and runs at boot, but does not have any effect. That's why I am puzzled. Regards, Frank -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
* Arjen de Korte <suse+factory@de-korte.org> [08-04-20 13:50]:
Citeren Frank Krüger <fkrueger@mailbox.org>:
Hi there
Given TW20200802 (with the kernel:stable repo enabled), I have a bunch of old kernels even though 'multiversion.kernels = latest,running" is "enabled" in /etc/zypp/zypp.conf. As a matter of fact, 'sudo zypper purge-kernels' does not have any effect. The same issue seems to apply to Leap 15.2.
What do I miss? Thx.
This is a systemd service for a while already:
systemctl enable purge-kernels.service
will run it at boot as previously was the case before this change.
beware: doesn't seem to follow config if more than one previous kernel is to be retained. there is a bug report but I don't have the number handy. I have disabled purge-kernels and am hand applying. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
04.08.2020 20:32, Frank Krüger пишет:
Hi there
Given TW20200802 (with the kernel:stable repo enabled), I have a bunch of old kernels
such as?
even though 'multiversion.kernels = latest,running" is "enabled" in /etc/zypp/zypp.conf. As a matter of fact, 'sudo zypper purge-kernels' does not have any effect. The same issue seems to apply to Leap 15.2.
What do I miss? Thx.
This certainly works in 20200731 and standard kernel-default using multiversion = provides(multiversion:kernel) multiversion.kernel = latest,latest-1,running So what is "multiversion" set to? Comment also says default is to not delete anything if multiversion.kernel is not set, are you sure there is no typo? /var/log/zypper.log would tell more. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Am 04.08.20 um 21:28 schrieb Andrei Borzenkov:
04.08.2020 20:32, Frank Krüger пишет:
Hi there
Given TW20200802 (with the kernel:stable repo enabled), I have a bunch of old kernels such as?
5.7.10-1.g6a1b5cf-default 5.7.10-3.gd1148b9-default 5.7.11-1.g5015994-default 5.7.12-1.g9c98feb-default 5.7.8-1.g8f507a0-default 5.7.9-1.ga010166-default 5.8.0-1.gd3bf2d6-default 5.8.0-2.g9bc0044-default
even though 'multiversion.kernels = latest,running" is "enabled" in /etc/zypp/zypp.conf. As a matter of fact, 'sudo zypper purge-kernels' does not have any effect. The same issue seems to apply to Leap 15.2.
This certainly works in 20200731 and standard kernel-default using
multiversion = provides(multiversion:kernel) multiversion.kernel = latest,latest-1,running
So what is "multiversion" set to? Comment also says default is to not delete anything if multiversion.kernel is not set, are you sure there is no typo? /var/log/zypper.log would tell more.
multiversion = provides:multiversion(kernel) multiversion.kernels = latest,running in accordance with https://doc.opensuse.org/documentation/leap/reference/html/book.opensuse.ref.... Since zypper.log does not provide any clue, it's probably better to open a bug report. Regards, Frank -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
04.08.2020 22:55, Frank Krüger пишет:
This certainly works in 20200731 and standard kernel-default using
multiversion = provides(multiversion:kernel) multiversion.kernel = latest,latest-1,running
So what is "multiversion" set to? Comment also says default is to not delete anything if multiversion.kernel is not set, are you sure there is no typo? /var/log/zypper.log would tell more.
multiversion = provides:multiversion(kernel)
Sorry, I have the same of course, was a typo. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 8/4/20 12:32 PM, Frank Krüger wrote:
Given TW20200802 (with the kernel:stable repo enabled), I have a bunch of old kernels even though 'multiversion.kernels = latest,running" is "enabled" in /etc/zypp/zypp.conf. As a matter of fact, 'sudo zypper purge-kernels' does not have any effect. The same issue seems to apply to Leap 15.2.
It is sort-of working here in a somewhat broken fashion. Does "/boot/do_purge_kernels" exist? If it does, then maybe the service is not enabled. If "zypper purge-kernels" is not doing anything, then something is odd. Perhaps you confused it by not having "latest-1" in that "multiversion.kernels" line. Here's what is happening here: On Leap 15.2, I have the standard "multiversion.kernels" line. So there are two kernels retained. After the last kernel update, I ran zypper purge-kernels I ran that manually, and enabled the service afterwards. It did what I expected. It removed the oldest kernel and the devel packages associated with that kernel. On my Tumbleweed systems, I have multiversion.kernels = oldest,latest,latest-1,running The oldest kernel is the last 5.6 kernel. On one Tumbleweed system, purge-kernels did as expected. It removed the oldest 5.7 kernel and the devel packages associated with that. On another Tumbleweed system, it removed the oldest 5.7 kernel (I think it was 5.7.5-1.2), but it failed to remove the associated devel packages. What's peculiar about that last mentioned system, is that the 5.6 kernel being kept does not have any associated devel packages (those were removed due to an earlier bug in purge-kernels). So, after the purge-kernel I am left with 3 kernels and 3 sets of devel packages. But the devel packages do not match the kernels. I'm guessing this will correct itself when a 5.8 kernel arrives and I manually remove the old 5.6 kernel. If you want me to test it, I can experiment with Tumbleweed in a VM. I could clone that, then remove the "latest-1" for the clone and see whether "zypper purge-kernels" deletes the corresponding kernel. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
04.08.2020 23:24, Neil Rickert пишет:
On my Tumbleweed systems, I have multiversion.kernels = oldest,latest,latest-1,running
The oldest kernel is the last 5.6 kernel.
...
On another Tumbleweed system, it removed the oldest 5.7 kernel (I think it was 5.7.5-1.2), but it failed to remove the associated devel packages.
What's peculiar about that last mentioned system, is that the 5.6 kernel being kept does not have any associated devel packages (those were removed due to an earlier bug in purge-kernels). So, after the purge-kernel I am left with 3 kernels and 3 sets of devel packages. But the devel packages do not match the kernels.
Well, nowhere is it stated that they should. You have a) which packages should be kept in multiple versions (multiversion = ...) b) what versions of these packages are kept (multiversion.kernel = ...) You told it to keep the oldest versions of multiversion packages and what you describe is exactly what happened - it kept the oldest version of kernel-devel that is present on your system. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 8/4/20 3:35 PM, Andrei Borzenkov wrote:
04.08.2020 23:24, Neil Rickert ??????????:
You told it to keep the oldest versions of multiversion packages and what you describe is exactly what happened - it kept the oldest version of kernel-devel that is present on your system.
Good point. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 04. 08. 20, 19:32, Frank Krüger wrote:
Hi there
Given TW20200802 (with the kernel:stable repo enabled), I have a bunch of old kernels even though 'multiversion.kernels = latest,running" is "enabled" in /etc/zypp/zypp.conf. As a matter of fact, 'sudo zypper purge-kernels' does not have any effect. The same issue seems to apply to Leap 15.2.
What's in systemctl status -n 200 purge-kernels.service ? thanks, -- js suse labs -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (6)
-
Andrei Borzenkov
-
Arjen de Korte
-
Frank Krüger
-
Jiri Slaby
-
Neil Rickert
-
Patrick Shanahan