From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1a3ne1-0006uB-65 for mharc-grub-devel@gnu.org; Tue, 01 Dec 2015 11:19:09 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50904) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a3ndy-0006tO-Eq for grub-devel@gnu.org; Tue, 01 Dec 2015 11:19:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a3ndu-0006VB-F5 for grub-devel@gnu.org; Tue, 01 Dec 2015 11:19:06 -0500 Received: from mail-lf0-x22e.google.com ([2a00:1450:4010:c07::22e]:34958) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a3ndu-0006V7-7r for grub-devel@gnu.org; Tue, 01 Dec 2015 11:19:02 -0500 Received: by lfdl133 with SMTP id l133so15127266lfd.2 for ; Tue, 01 Dec 2015 08:19:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=to:from:subject:message-id:date:user-agent:mime-version :content-type:content-transfer-encoding; bh=tqMJdERh3//rxqFWOJZy2j6i3dZ9Yfu264WJRw6s+7E=; b=JlJiZxS5RtZx8K4zPv54n8c6cbbelFnXv4BaFc/jIAJRe659puNxdtyg2xrhbuNnky UqR9s1GVHmUwwWgEDtabKUJt4XmU1EEurPVegQF3gwCfCdzEcU5HxiYrL/Y5DPs+mZuf 28Qjh6+TZCgoLtIEFuxJWsYBqsYjzGARcJ570WPZ2bq846YH+aHzSabEM7tKGnrQDMHz 44jriu/kQVXLP5Ju8FU4oWOfazbILjndv9JiZP6LJ9fp0fEdw0FdpYTYtZDcVxwpUcJt LKrA7kRiJ+2CQax20mxqoZLeItQyKGu8wOEiO812RzSONXXDWdkd43T5p9SXn25cfir2 Qhuw== X-Received: by 10.25.27.16 with SMTP id b16mr23370049lfb.149.1448986741206; Tue, 01 Dec 2015 08:19:01 -0800 (PST) Received: from [192.168.1.41] (ppp91-76-25-247.pppoe.mtu-net.ru. [91.76.25.247]) by smtp.gmail.com with ESMTPSA id wu10sm8171000lbb.44.2015.12.01.08.18.59 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 01 Dec 2015 08:19:00 -0800 (PST) To: The development of GNU GRUB From: Andrei Borzenkov Subject: grub_machine_get_bootlocation and partitions X-Enigmail-Draft-Status: N1110 Message-ID: <565DC873.7080204@gmail.com> Date: Tue, 1 Dec 2015 19:18:59 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::22e 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, 01 Dec 2015 16:19:07 -0000 If partition information is actually present, it results in bogus and invalid device name like hd0,1 This device cannot be opened as it requires partmap name. One obvious case when partition *is* passed to GRUB is multiboot. I suppose nobody ever noticed it because standard grub-install generates fixed partition part. We probably can fallback to probing partmap on current level in this case, except it means more code again. But current situation is rather useless as is.