From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1YxRFd-0000Oa-Tb for mharc-grub-devel@gnu.org; Tue, 26 May 2015 22:39:25 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43706) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxHzx-0004E2-2U for grub-devel@gnu.org; Tue, 26 May 2015 12:46:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YxHzt-0001OP-2I for grub-devel@gnu.org; Tue, 26 May 2015 12:46:37 -0400 Received: from mail-ig0-x230.google.com ([2607:f8b0:4001:c05::230]:36699) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxHzs-0001OK-TY for grub-devel@gnu.org; Tue, 26 May 2015 12:46:32 -0400 Received: by igbpi8 with SMTP id pi8so63042181igb.1 for ; Tue, 26 May 2015 09:46:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=o2Z6hAit/Zp6RvhkKSPrX14Q5zA73JaHxCDivFMA9bU=; b=e+71G2+bEvQ1O3eQLLPRc/iZWHRDh80EyHfdEa+HMB/a3Ny2BpAO6h2K3/hPYhymtq wGq50d2hR+zGw0csElMO0jRO3Dmtd5DjmECbMfxvgzHiJH1HI63cEbE2j4jIV+crZIcF CeICqdfD+DdV5nF/A8Pzkms0s2LjakjzPztsme4UnB+jlGo7GhQj1ixIkEL6lwnO6hWT GUjObfT0/uQGaMIXvfsJ936s1JdT2fbZ8JNvLSq9I1RZm5OYF5W6t07fiQs5yZ6jeNir GgsIbzJIZ7cN7dlb+7UzW0pw1UTBt11U6VRC5HCIc/l+1o3kkcyKeYm9g0H3O6vtM1W3 hnlA== X-Received: by 10.50.79.202 with SMTP id l10mr31061091igx.7.1432658791973; Tue, 26 May 2015 09:46:31 -0700 (PDT) Received: from gaea.cyphermox.net (modemcable053.58-56-74.mc.videotron.ca. [74.56.58.53]) by mx.google.com with ESMTPSA id j20sm8695861igt.5.2015.05.26.09.46.30 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 26 May 2015 09:46:30 -0700 (PDT) From: Mathieu Trudel-Lapierre X-Google-Original-From: Mathieu Trudel-Lapierre To: grub-devel@gnu.org Subject: Date: Tue, 26 May 2015 12:46:07 -0400 Message-Id: <1432658768-4225-1-git-send-email-mathieu.trudel-lapierre@canonical.com> X-Mailer: git-send-email 2.1.4 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c05::230 X-Mailman-Approved-At: Tue, 26 May 2015 22:39:24 -0400 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 May 2015 16:46:38 -0000 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 :)