From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1ZoDig-0004p8-AM for mharc-grub-devel@gnu.org; Mon, 19 Oct 2015 12:55:34 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51687) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoDid-0004oS-Qd for grub-devel@gnu.org; Mon, 19 Oct 2015 12:55:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZoDiY-0008NO-Nq for grub-devel@gnu.org; Mon, 19 Oct 2015 12:55:31 -0400 Received: from mail-lb0-x233.google.com ([2a00:1450:4010:c04::233]:36656) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoDiY-0008NJ-Bg for grub-devel@gnu.org; Mon, 19 Oct 2015 12:55:26 -0400 Received: by lbcao8 with SMTP id ao8so148288009lbc.3 for ; Mon, 19 Oct 2015 09:55:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=CopaB1Whe2hfGk95AR1DMHGo+DCAqJ0vMRxQT3VRLRM=; b=S5OmWUjg604FSF5PRX0Vr+BFXFDqEuhBQ46jsM18tx6cRoT+VfhTLeVRdTrWWA+hYO qTYtvEqIaSFySPv9sy12VLiIxFHH6zei8DbFAUQAzBS+nGdDmU4ZNkyeiDzNPCGzoaw8 6/O904gb/0uXgN4IK++D4Tnm8WCleo4vn+GdMo1zXaXaQ9juwC/WX9THwu68pbQIzeay +loP/y9RQ5cmgOpxBB6RX46VIESVNa6Vmee7WWmnHyN/yuXSNKSgvLat+NH6hKripgwl /623jBTQ2QbIdtxGOHJMHpS87eiTlGX7JowHraJbGHZ0xGh11+Xe40NIeYN0E8fCKoPN aOLQ== X-Received: by 10.112.54.130 with SMTP id j2mr513738lbp.120.1445273725392; Mon, 19 Oct 2015 09:55:25 -0700 (PDT) Received: from [192.168.1.43] (ppp91-76-142-206.pppoe.mtu-net.ru. [91.76.142.206]) by smtp.gmail.com with ESMTPSA id r194sm1233300lfg.5.2015.10.19.09.55.24 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Oct 2015 09:55:24 -0700 (PDT) Subject: Re: Grub-devel Digest, Vol 140, Issue 25 To: The development of GNU GRUB References: <2DCC166D4F5C8443941662E1E67FD5C178724F92@LEICESTER.internal.datapath.co.uk> <20151019163959.GU21923@csclub.uwaterloo.ca> From: Andrei Borzenkov Message-ID: <5625207B.1060709@gmail.com> Date: Mon, 19 Oct 2015 19:55:23 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151019163959.GU21923@csclub.uwaterloo.ca> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::233 Cc: "abranches@gmail.com" 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: Mon, 19 Oct 2015 16:55:33 -0000 19.10.2015 19:39, Lennart Sorensen пишет: > On Mon, Oct 19, 2015 at 09:05:47AM +0000, Stuart Weaver wrote: >> Hi Manoel, >> >> Many thanks for your detailed answer and quick response! I've looked into using this but I don't think it will stop the root problem of GRUB loading the wrong grub.cfg file. Is there a way of using the 'search' command before GRUB has loaded a grub.cfg and therefore use the same command to look for the grub.cfg? >> >> To reiterate, >> >> 1. If both eMMC and USB are connected and from the BIOS I choose to boot into the USB, I would expect the BIOS to load GRUB and GRUB to load the grub.cfg on the USB... And that is exactly what happens. However... >> >> 2. If both eMMC and USB are connected and from the BIOS I choose to boot into the eMMC I would expect the BIOS to load GRUB and GRUB to load the grub.cfg on the eMMC... Unfortunately the BIOS loads GRUB on the eMMC (correct) but GRUB loads the grub.cfg from the USB, not the eMMC. >> >> I would like to keep the two systems as separate as possible and let the BIOS choose which system to boot. Is this possible? > > If the BIOS provides a list of disks to GRUB that has the USB as the first > device and eMMC as the second, there isn't much grub can do about it. > GRUB reads grub.cfg either from the device BIOS had booted from (sans serious BIOS bugs) or from device where UUID of /boot/grub is found. At least if this GRUB was installed by grub-install. So order of devices in BIOS is irrelevant. I asked him to explain how GRUB was installed on both devices but he never replied ... besides IIRC original question of about EFI, not BIOS. > In my laptop I have two SATA devices, and the BIOS always provides them to > GRUB in the order of the ports, even though I have it set to boot from the > second one. It's a bit annoying, but at least it is consistent about it. > > Would be nice if yours put the fixed devices before the removable devices, > but some systems are stupid. >