[Bug 753889] New: grub2: Sorts "previous" kernel versions in wrong order
https://bugzilla.novell.com/show_bug.cgi?id=753889 https://bugzilla.novell.com/show_bug.cgi?id=753889#c0 Summary: grub2: Sorts "previous" kernel versions in wrong order Classification: openSUSE Product: openSUSE 12.2 Version: Milestone 2 Platform: x86-64 OS/Version: openSUSE 12.2 Status: NEW Severity: Minor Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jeffm@suse.com QAContact: qa-bugs@suse.de CC: coolo@suse.com Found By: Development Blocker: --- Created an attachment (id=483053) --> (http://bugzilla.novell.com/attachment.cgi?id=483053) grub.cfg I installed 12.2M2 and immediately installed Kernel:HEAD to get 3.3-final plus a few fixes. I'm using grub2 and 3.3-rc6 still appeared as the latest installed kernel with the 3.3-final kernel appearing under "previous linux versions." I haven't installed any updates from Factory or updated grub2 at all. The grub2 config was generated, as expected, my /boot/grub2/grub.cfg was generated by grub-mkconfig. I'm not sure who, if any, is the grub2 maintainer. -- 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=753889 https://bugzilla.novell.com/show_bug.cgi?id=753889#c kk zhang <kkzhang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kkzhang@novell.com AssignedTo|bnc-team-screening@forge.pr |aj@suse.com |ovo.novell.com | -- 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=753889 https://bugzilla.novell.com/show_bug.cgi?id=753889#c Andreas Jaeger <aj@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aj@suse.com AssignedTo|aj@suse.com |mchang@suse.com -- 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=753889 https://bugzilla.novell.com/show_bug.cgi?id=753889#c1 Andreas Jaeger <aj@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lchiquitto@suse.com --- Comment #1 from Andreas Jaeger <aj@suse.com> 2012-03-28 14:48:46 UTC --- *** Bug 754549 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=754549 -- 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=753889 https://bugzilla.novell.com/show_bug.cgi?id=753889#c2 Michael Chang <mchang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #2 from Michael Chang <mchang@suse.com> 2012-03-29 10:18:16 UTC --- This is due to bash's filename expansion is alphabetically sorted, need to figure out a way to make it sort by time (afaics bash has no shopt options could do that). Upstream seems to be the same. JFYI, the script that determines the order is like list=`for i in /boot/vmlinuz-* /vmlinuz-* /boot/kernel-* ; do` if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi done -- 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=753889 https://bugzilla.novell.com/show_bug.cgi?id=753889#c3 Richard Bos <richard.bos@xs4all.nl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |richard.bos@xs4all.nl --- Comment #3 from Richard Bos <richard.bos@xs4all.nl> 2012-07-08 19:37:16 UTC --- Would it be possible to use list=`for i in $(ls -tr /boot/vmlinuz-* /vmlinuz-* /boot/kernel-*); do` etc.... That would make the list time ordered isn't it, or is there no 'ls' around? -- 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=753889 https://bugzilla.novell.com/show_bug.cgi?id=753889#c4 --- Comment #4 from Michael Chang <mchang@suse.com> 2012-07-10 04:07:25 UTC --- Richard, Yes, your fix looks appropriate to me. Would you mind to submit the changes to grub2 package, with my little amend to be more compatible with the shell expansion, by not reporting error and not displaying folder's contents ? list=`for i in $(ls -tdr /boot/vmlinuz-* /vmlinuz-* /boot/kernel-* 2> /dev/null); do Thanks. -- 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=753889 https://bugzilla.novell.com/show_bug.cgi?id=753889#c5 Jeffrey Cheung <jcheung@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED CC| |jcheung@suse.com Resolution| |WONTFIX --- Comment #5 from Jeffrey Cheung <jcheung@suse.com> 2014-02-10 07:57:13 UTC --- With the release of the gnumeric on January 27th, 2014 the SUSE sponsored maintenance of openSUSE 12.2 has ended. openSUSE 12.2 is now officially discontinued and out of support by SUSE. -- 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.
participants (1)
-
bugzilla_noreply@novell.com