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