[Bug 1317153] Re: os-prober 90fallback - kernels detected out of order
Mario Chamorro
launchpad at chamorro.us
Tue Nov 25 21:07:17 UTC 2014
This should be a pretty simple patch to one file. I notice that I cannot
see this bug in Dimitri's assigned list. Is anyone going to look at
this?
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to os-prober in Ubuntu.
https://bugs.launchpad.net/bugs/1317153
Title:
os-prober 90fallback - kernels detected out of order
Status in “os-prober” package in Ubuntu:
New
Bug description:
Ubuntu information at the end of this message. When detecting kernels
in other distributions like CentOS on the same disk, the kernels are
incorrectly sorted numerically.
e.g. this is the current incorrect jumbled result from grub-mkconfig:
vmlinuz-2.6.32-358.23.2.el6.x86_64
vmlinuz-2.6.32-431.11.2.el6.x86_64
vmlinuz-2.6.32-431.1.2.0.1.el6.x86_64
vmlinuz-2.6.32-431.3.1.el6.x86_64
vmlinuz-2.6.32-431.5.1.el6.x86_64
The correct order where the newest kernels are at the top is like so:
vmlinuz-2.6.32-431.11.2.el6.x86_64
vmlinuz-2.6.32-431.5.1.el6.x86_64
vmlinuz-2.6.32-431.3.1.el6.x86_64
vmlinuz-2.6.32-431.1.2.0.1.el6.x86_64
vmlinuz-2.6.32-358.23.2.el6.x86_64
To resolve this, /usr/lib/linux-boot-probes/mounted/90fallback needs
to list them with the "-t" option:
-t sort by modification time, newest first
I've made the below change to my local 90fallback script and verified
that the kernels are now listed in the correct order:
22c22
< for kernfile in $(eval ls "$mpoint$kernpat" 2>/dev/null); do
---
> for kernfile in $(eval ls -t "$mpoint$kernpat" 2>/dev/null); do
Please make this correction to os-prober so I do not have to manually modify /boot/grub/grub.cfg every time my multi-boot laptop gets new updated kernels. Thanks in advance.
-- Mario Chamorro
[mchamorr-ubuntu:~] lsb_release -rd
Description: Ubuntu 14.04 LTS
Release: 14.04
[mchamorr-ubuntu:~] apt-cache policy os-prober
os-prober:
Installed: 1.63ubuntu1
Candidate: 1.63ubuntu1
Version table:
*** 1.63ubuntu1 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty/main i386 Packages
100 /var/lib/dpkg/status
[mchamorr-ubuntu:~]
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/os-prober/+bug/1317153/+subscriptions
More information about the foundations-bugs
mailing list