[Bug 1197376] New: grub: wrong kernel order - rc kernel before final release
https://bugzilla.suse.com/show_bug.cgi?id=1197376 Bug ID: 1197376 Summary: grub: wrong kernel order - rc kernel before final release Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Bootloader Assignee: screening-team-bugs@suse.de Reporter: petr.vorel@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- This is the current menu on my Tumbleweed: 0 openSUSE Tumbleweed 1 Advanced options for openSUSE Tumbleweed 1>0 openSUSE Tumbleweed, with Linux 5.17.0-rc8-1.g9555b2a-default 1>1 openSUSE Tumbleweed, with Linux 5.17.0-rc8-1.g9555b2a-default (recovery mode) 1>2 openSUSE Tumbleweed, with Linux 5.17.0-1.gbe2cbd1-default 1>3 openSUSE Tumbleweed, with Linux 5.17.0-1.gbe2cbd1-default (recovery mode) 1>4 openSUSE Tumbleweed, with Linux 5.16.15-1-default 1>5 openSUSE Tumbleweed, with Linux 5.16.15-1-default (recovery mode) Obviously 5.17.0-1.gbe2cbd1-default should be above 5.17.0-rc8-1.g9555b2a-default. $ rpm -qf /boot/config-5.1* kernel-default-5.16.15-1.1.x86_64 kernel-default-5.17~rc8-1.1.g9555b2a.x86_64 kernel-default-5.17.0-1.1.gbe2cbd1.x86_64 $ rpm -qi kernel-default-5.17~rc8 Name : kernel-default Version : 5.17~rc8 Release : 1.1.g9555b2a Architecture: x86_64 Install Date: Po��14.��b��ezna��2022,��12:00:36 Group : System/Kernel Size : 274845142 License : GPL-2.0-only Signature : RSA/SHA256, Po��14.��b��ezna��2022,��02:11:20, Key ID eceef21003579c1d Source RPM : kernel-default-5.17~rc8-1.1.g9555b2a.nosrc.rpm Build Date : Po��14.��b��ezna��2022,��02:05:09 Build Host : cloud137 Vendor : obs://build.opensuse.org/Kernel URL : http://www.kernel.org/ Summary : The Standard Kernel Description : The standard kernel for both uniprocessor and multiprocessor systems. Source Timestamp: 2022-03-13 22:07:15 +0000 GIT Revision: 9555b2aa591ad22ef859206e2405156ca34a170e GIT Branch: master Distribution: Kernel:HEAD $ rpm -qi kernel-default-5.17.0 Name : kernel-default Version : 5.17.0 Release : 1.1.gbe2cbd1 Architecture: x86_64 Install Date: Po��21.��b��ezna��2022,��19:49:21 Group : System/Kernel Size : 274813386 License : GPL-2.0-only Signature : RSA/SHA256, Po��21.��b��ezna��2022,��03:25:47, Key ID eceef21003579c1d Source RPM : kernel-default-5.17.0-1.1.gbe2cbd1.nosrc.rpm Build Date : Po��21.��b��ezna��2022,��03:19:28 Build Host : cumulus2 Vendor : obs://build.opensuse.org/Kernel URL : https://www.kernel.org/ Summary : The Standard Kernel Description : The standard kernel for both uniprocessor and multiprocessor systems. Source Timestamp: 2022-03-20 21:25:20 +0000 GIT Revision: be2cbd19dc9a728d22ec894e35710ae1d88d0c1b GIT Branch: master Distribution: Kernel:HEAD -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1197376 https://bugzilla.suse.com/show_bug.cgi?id=1197376#c1 --- Comment #1 from Petr Vorel <petr.vorel@suse.com> --- $ rpm -qa | grep ^grub2 grub2-x86_64-efi-2.06-19.1.noarch grub2-branding-openSUSE-84.87.20210910-1.1.noarch grub2-2.06-19.1.x86_64 grub2-systemd-sleep-plugin-2.06-19.1.noarch grub2-i386-pc-2.06-19.1.noarch grub2-snapper-plugin-2.06-19.1.noarch -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1197376 https://bugzilla.suse.com/show_bug.cgi?id=1197376#c2 Petr Vorel <petr.vorel@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |petr.vorel@suse.com --- Comment #2 from Petr Vorel <petr.vorel@suse.com> --- Created attachment 857234 --> https://bugzilla.suse.com/attachment.cgi?id=857234&action=edit /boot/grub2/grub.cfg (from grub2-2.06-19.1.x86_64) -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1197376 Petr Vorel <petr.vorel@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mchang@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1197376 https://bugzilla.suse.com/show_bug.cgi?id=1197376#c3 --- Comment #3 from Michael Chang <mchang@suse.com> --- This is apparently the result of using rpmsort to sort versions, latest on top.
/usr/lib/rpm/rpmsort -r <<'EOF'
5.16.15-1 5.17.0-1 5.17.0-rc8-1 EOF 5.17.0-rc8-1 5.17.0-1 5.16.15-1
However if taking the version from rpm package, we can get correct result. Please note that hypen is replaced by tilde.
/usr/lib/rpm/rpmsort -r <<'EOF'
5.16.15-1.1 5.17~rc8-1.1 5.17.0-1.1 EOF 5.17.0-1.1 5.17~rc8-1.1 5.16.15-1.1
So it appears that the hypen (-) in the version tag confused the sorting algorithm since it is also used as the delimiter in NVR format <Name>-<Version>-<Release>. I will try to come up with a patch to replace hypen with tilde for the sort comparsion in accordance with the naming in rpm package. Thanks. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1197376 Chenzi Cao <chcao@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|screening-team-bugs@suse.de |mchang@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1197376 https://bugzilla.suse.com/show_bug.cgi?id=1197376#c5 Benjamin Brunner <bbrunner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|mchang@suse.com |bootloader-maintainers@suse | |.de --- Comment #5 from Benjamin Brunner <bbrunner@suse.com> --- Bulk-re-assigning to the new bootloader-maintainers@suse.de group. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com