grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
* (no subject)
@ 2015-05-26 16:46 Mathieu Trudel-Lapierre
  2015-05-26 16:46 ` [PATCH] Set a bootdrive environment variable Mathieu Trudel-Lapierre
  2015-05-27  4:04 ` Andrei Borzenkov
  0 siblings, 2 replies; 9+ messages in thread
From: Mathieu Trudel-Lapierre @ 2015-05-26 16:46 UTC (permalink / raw)
  To: grub-devel

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 :)



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-07-07  3:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-26 16:46 Mathieu Trudel-Lapierre
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

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