grub-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Add config option to prefer Linux kernel versions by substri


From: Andrei Borzenkov
Subject: Re: [PATCH] Add config option to prefer Linux kernel versions by substring match
Date: Sat, 13 Sep 2014 20:01:28 +0400

В Sun, 07 Sep 2014 12:37:36 -0700
Doug Brunner <address@hidden> пишет:

> Hi all,
> 
> First time submitting - please let me know if I'm doing anything wrong.
> 
> This patch adds an option, GRUB_LINUX_PREF_VERSION_SUBSTR, that can be set to 
> prioritize Linux kernels containing a
> given substring. This takes precedence over version ordering, so if you have 
> 3.14.1-generic, 3.14.2-generic,
> 3.8.13-fnord1, and 3.8.13-fnord2 and the substring is 'fnord', the order is:
> 3.8.13-fnord2
> 3.8.13-fnord1
> 3.14.2-generic
> 3.14.1-generic
> 

You can simply disable default 10_linux script and use your own that
does whatever ordering you prefer. This is too specific for upstream
distribution. But it really seems like we need some additional layer on
top of raw grub script that allows manual reordering of entries among
others.

> +  if [[ "$entry" == *$GRUB_LINUX_PREF_VERSION_SUBSTR* ]]; then

No, grub scripts do not require bash, so this is not going to work.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]