[Bug 820367] New: New Tumbleweed Kernel Version IDs break multiversion/purge-kernel
https://bugzilla.novell.com/show_bug.cgi?id=820367 https://bugzilla.novell.com/show_bug.cgi?id=820367#c0 Summary: New Tumbleweed Kernel Version IDs break multiversion/purge-kernel Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: Other OS/Version: openSUSE 12.3 Status: NEW Severity: Normal Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: kai@stella.at QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0 My desktop system is running up to date Tumbleweed/12.3. Today I noticed that since the 3.9 kernels at least the kernel-desktop packages have a hash value attached to the version string. this seems to confuse the purge-kernels skript used for cleaning up kernels when multiversion is enabled. output is /sbin/purge-kernels: Running kernel 3.9.2-8.g04040b9-x86_64/desktop not installed. NOT removing any packages for flavor x86_64/desktop. /sbin/purge-kernels: Nothing to do. Reproducible: Always Steps to Reproduce: 1.enable kernel multiversion in /etc/zypp/zypp.conf on an Tumbleweed system (http://en.opensuse.org/SDB:Keep_multiple_kernel_versions) 2.enable purge-kernels.service 3. Actual Results: since the new kernel package names the auto cleaning like described in the documentation is no longer happening and the number of installed kernel packages is increasing which fills up the small /boot partition. which currently means you have to manually uninstall old kernels if multiversion feature is enabled Expected Results: purge-kernels should delete no longer used kernels on boot (according to the rules) Console output of purge-kernels when called from command line is: /sbin/purge-kernels: Running kernel 3.9.2-8.g04040b9-x86_64/desktop not installed. NOT removing any packages for flavor x86_64/desktop. /sbin/purge-kernels: Nothing to do. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=820367
https://bugzilla.novell.com/show_bug.cgi?id=820367#c1
Andreas Prittwitz
https://bugzilla.novell.com/show_bug.cgi?id=820367
https://bugzilla.novell.com/show_bug.cgi?id=820367#c2
Lars Müller
https://bugzilla.novell.com/show_bug.cgi?id=820367
https://bugzilla.novell.com/show_bug.cgi?id=820367#c
Jiri Slaby
https://bugzilla.novell.com/show_bug.cgi?id=820367
https://bugzilla.novell.com/show_bug.cgi?id=820367#c3
--- Comment #3 from Daniele Baracchi
https://bugzilla.novell.com/show_bug.cgi?id=820367
https://bugzilla.novell.com/show_bug.cgi?id=820367#c4
--- Comment #4 from Andreas Prittwitz
Created an attachment (id=546931) --> (http://bugzilla.novell.com/attachment.cgi?id=546931) [details] purge-kernels should ignore git revision in version_match
The attached patch will make purge-kernels ignore the git revision id when comparing version numbers. It should fix the bug.
Daniele, I tried the patch on three different Tumbleweed-installations and can confirm that it is working. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=820367
https://bugzilla.novell.com/show_bug.cgi?id=820367#c5
--- Comment #5 from Kai Iskratsch
https://bugzilla.novell.com/show_bug.cgi?id=820367
https://bugzilla.novell.com/show_bug.cgi?id=820367#c6
--- Comment #6 from Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=820367
https://bugzilla.novell.com/show_bug.cgi?id=820367#c7
--- Comment #7 from Kai Iskratsch
https://bugzilla.novell.com/show_bug.cgi?id=820367
https://bugzilla.novell.com/show_bug.cgi?id=820367#c8
Ondrej Holecek
https://bugzilla.novell.com/show_bug.cgi?id=820367
https://bugzilla.novell.com/show_bug.cgi?id=820367#c9
Stephen Parry
https://bugzilla.novell.com/show_bug.cgi?id=820367
https://bugzilla.novell.com/show_bug.cgi?id=820367#c10
--- Comment #10 from Stephen Parry
https://bugzilla.novell.com/show_bug.cgi?id=820367
https://bugzilla.novell.com/show_bug.cgi?id=820367#c11
Edgar Aichinger
https://bugzilla.novell.com/show_bug.cgi?id=820367
https://bugzilla.novell.com/show_bug.cgi?id=820367#c12
--- Comment #12 from Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=820367
https://bugzilla.novell.com/show_bug.cgi?id=820367#c13
Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=820367
https://bugzilla.novell.com/show_bug.cgi?id=820367#c14
Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=820367
https://bugzilla.novell.com/show_bug.cgi?id=820367#c15
Wolfgang Bauer
This is fixed in the dracut package in Factory.
But what about 12.3 (against which this is reported), and 13.1 (on which Tumbleweed is based at the moment)? It's still an issue in Tumbleweed AFAIK. purge-kernels does not purge any kernels there because of Tumbleweed's kernel naming scheme (which does still use the gXXXXX suffix) IIANM. People also experience the problem when they add e.g. the Kernel:stable repo to their 12.3/13.1 system, as mentioned in comment#9. I really think the fix should be added to mkinitrd's purge-kernels script as well and released as update at least for 13.1. The patch should apply as-is anyway AFAICS. It's _not_ fixed in the mkinitrd package in Factory or Base:System either, btw... (yes, this is still included in Factory ;) ). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=820367
https://bugzilla.novell.com/show_bug.cgi?id=820367#c16
Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=820367
https://bugzilla.novell.com/show_bug.cgi?id=820367#c17
--- Comment #17 from Michal Marek
Regarding Factory, I think we should drop mkinitrd in favor of dracut there.
https://features.opensuse.org/317846 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=820367
https://bugzilla.novell.com/show_bug.cgi?id=820367#c18
Marcus Meissner
http://bugzilla.novell.com/show_bug.cgi?id=820367
--- Comment #25 from Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com