Re: grub2-mkconfig with 3.2.10 kernels?



On Sun, Mar 18, 2012 at 5:00 PM, Michael D. Setzer II
<mikes@xxxxxxxxxxxxxxxx> wrote:
Just did an update and it included a new kernel, but then on
reboot after running grub2-mkconfig noticed that the newest one
was not first. Seems to be sorting the 9 before the 10?

Is this a bug?
I use the default="0", so this makes it not use the latest?

Looks like a bug in mkconfig's sorting code. [1]
Simply replace sort -n (numerical) with sort -V (version) in
grub-mkconfig_lib (patch attach, run from "/", use at your own risk,
may eat your children, etc)
I've reported it in bugzilla [2].

- Gilboa
[1] http://lists.gnu.org/archive/html/grub-devel/2012-03/msg00159.html
[2] https://bugzilla.redhat.com/show_bug.cgi?id=804558
--- usr/lib/grub/grub-mkconfig_lib.old 2012-03-19 10:57:20.568836288 +0200
+++ usr/lib/grub/grub-mkconfig_lib 2012-03-19 10:57:25.951592474 +0200
@@ -163,7 +163,7 @@
a="$b"
b="$c"
fi
- if (echo "$a" ; echo "$b") | sort -n | head -n 1 | grep -qx "$b" ; then
+ if (echo "$a" ; echo "$b") | sort -V | head -n 1 | grep -qx "$b" ; then
return 0
else
return 1
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


Relevant Pages

  • Re: Ultimate Debug environment?
    ... If it is a boot time driver, it is reboot ... With two systems the reboot can occur while the bug ... >> Softice, q'est ce que c'est? ...
    (microsoft.public.development.device.drivers)
  • Re: Atheists: Americas most distrusted minority
    ... number of machines and I can't remember the last time I had to reboot (other ... another machine because a known bug in one of the updates meant that I ... move it back and do a system restore. ... didn't occur to them that eSATA drives were, well, e, and so you can't ...
    (rec.arts.sf.tv.babylon5.moderated)
  • Re: 7.2-release/amd64: panic, spin lock held too long
    ... It also failed to reboot automatically.. ... Anyway I disabled powerd and it seems become stable now. ... The patch is against STABLE_7, but I think HEAD has the same bug. ...
    (freebsd-stable)
  • Re: Xen 3.0.1 with Ubuntu Dapper in DOM0
    ... Then /var/run/xentored was deleted every reboot too. ... I going to port in xen-devel list this bug. ... > "If you're installing from source, you might want to add the following ... >> then try installing hotplug again. ...
    (Ubuntu)
  • Re: [kde-linux] End Session problem
    ... Looks like the same problem I have with KDE... ... until a reboot - ctrl+alt+backspace and init 3, ... thought this was a consequence of the bug - but of course, ... Now, after patching the KDE bug, after a logout X STILL sporadically ...
    (KDE)