grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
From: Mathieu Trudel-Lapierre <mathieu.tl@gmail.com>
To: grub-devel@gnu.org
Subject: 
Date: Tue, 26 May 2015 12:46:07 -0400	[thread overview]
Message-ID: <1432658768-4225-1-git-send-email-mathieu.trudel-lapierre@canonical.com> (raw)

I've been playing with fixing Ubuntu bug 1097570; trying to debug a script we
use for the EFI images which detects where to boot from based on the location
of a .disk/info file.

Turns out this mostly works, except for the fact that grub appears to always
list devices in a specific order, which interferes with the detection if more
than one device contains that file.

I think I can make this work appropriately provided we:
  - Use hints for search --file;
  - Have some value to pass to --hint= designating the boot drive.

Included is a patch that adds a "bootdrive" variable alongside cmdpath; which
contains just the drive designation for the boot device, to be used as such:

search --set=root --hint=$bootdrive --file .disk/info

I'd much appreciate review on that patch :)



             reply	other threads:[~2015-05-27  2:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-26 16:46 Mathieu Trudel-Lapierre [this message]
2015-05-26 16:46 ` [PATCH] Set a bootdrive environment variable Mathieu Trudel-Lapierre
2015-05-27  4:04 ` Andrei Borzenkov
2015-05-27 12:55   ` Mathieu Trudel-Lapierre
2015-05-31  6:42     ` Andrei Borzenkov
2015-06-04 15:40       ` Vladimir 'φ-coder/phcoder' Serbinenko
2015-06-05  3:58         ` Andrei Borzenkov
2015-07-06 19:44       ` Mathieu Trudel-Lapierre
2015-07-07  3:48         ` Andrei Borzenkov

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=1432658768-4225-1-git-send-email-mathieu.trudel-lapierre@canonical.com \
    --to=mathieu.tl@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).