All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrei Borzenkov <arvidjaar@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Cc: doug@doug-brunner.com
Subject: Re: [PATCH] Add config option to prefer Linux kernel versions by substring match
Date: Sat, 13 Sep 2014 20:01:28 +0400	[thread overview]
Message-ID: <20140913200128.1f0f384a@opensuse.site> (raw)
In-Reply-To: <540CB400.2060004@doug-brunner.com>

В Sun, 07 Sep 2014 12:37:36 -0700
Doug Brunner <doug@doug-brunner.com> пишет:

> 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.



  parent reply	other threads:[~2014-09-13 16:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-07 19:37 [PATCH] Add config option to prefer Linux kernel versions by substring match Doug Brunner
2014-09-11 17:52 ` Jordan Uggla
2014-09-13 16:01 ` Andrei Borzenkov [this message]
     [not found] <mailman.69.1410537627.19647.grub-devel@gnu.org>
2014-09-12 21:26 ` Doug Brunner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140913200128.1f0f384a@opensuse.site \
    --to=arvidjaar@gmail.com \
    --cc=doug@doug-brunner.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.