On Mon, Mar 19, 2012 at 4:46 PM, Piscium <[email protected]> wrote: > On 13 March 2012 03:32, Mike Gilbert <[email protected]> wrote: >> With the release of linux-3.2.10, I found grub-mkconfig is improperly >> sorting my kernels. >> >> Generating grub.cfg ... >> Found linux image: /boot/vmlinuz-3.2.9 >> Found linux image: /boot/vmlinuz-3.2.9.old >> Found linux image: /boot/vmlinuz-3.2.8 >> Found linux image: /boot/vmlinuz-3.2.8.old >> Found linux image: /boot/vmlinuz-3.2.7 >> Found linux image: /boot/vmlinuz-3.2.7.old >> Found linux image: /boot/vmlinuz-3.2.6 >> Found linux image: /boot/vmlinuz-3.2.5 >> Found linux image: /boot/vmlinuz-3.2.10 >> >> It looks like a simple typo in grub-mkconfig_lib. Patch below. >> >> >> === modified file 'util/grub-mkconfig_lib.in' >> --- util/grub-mkconfig_lib.in 2012-03-04 22:13:16 +0000 >> +++ util/grub-mkconfig_lib.in 2012-03-13 03:31:29 +0000 >> @@ -193,7 +193,7 @@ >> no) >> LC_ALL=C sort -n;; >> *) >> - if sort -v </dev/null > /dev/null 2>&1; then >> + if sort -V </dev/null > /dev/null 2>&1; then >> version_sort_sort_has_v=yes >> LC_ALL=C sort -V >> else > > Replacing "sort -n" with "sort -V" in > /usr/local/lib/grub/grub-mkconfig_lib fixed this issue for me (with > Fedora kernels). > > I was wondering if this fix will go into the upcoming grub 2.0.0? >
phcoder committed a fix yesterday. _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel
