[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#741889: os-prober: The 90fallback script lists the least recent kernels first



On Mon, 2014-03-17 at 01:41 +0100, Cyril Brulebois wrote:
> Wojciech Górski <wgorski1@gmail.com> (2014-03-17):
> > Package: os-prober
> > Version: 1.63
> > Severity: normal
> > Tags: patch
> > 
> > Hi,
> > 
> > when detecting kernels on a linux system without grub/lilo, the 90fallback
> > script is used, which looks for kernel/image files in a few well-known
> > locations using 'ls'. This makes the output least-recent-first ordered, causing
> > grub to use the oldest kernel as default, making it necessary to use a submenu
> > to boot the most recent one.
> > 
> > Attaching a patch reversing the ordering.
> 
> Thanks.
> 
> If we're going to fix that, don't we want to be sorting based on time
> (-t), instead sorting alphabetically (the default). Ideally we could
> do version-based sorting, but then people might come up with funny
> versioning schemes, so time-based looks better to me at first glance.
> 
> Thoughts?
[...]

If you can assume linux-base is installed (it is required by all
official kernel packages) then use the linux-version command.

Ben.

-- 
Ben Hutchings
I'm always amazed by the number of people who take up solipsism because
they heard someone else explain it. - E*Borg on alt.fan.pratchett

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: