Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NHbas-0001TP-D2 for mharc-grub-devel@gnu.org; Mon, 07 Dec 2009 06:17:30 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NHbaq-0001RB-EK for grub-devel@gnu.org; Mon, 07 Dec 2009 06:17:28 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NHbap-0001Q6-Cq for grub-devel@gnu.org; Mon, 07 Dec 2009 06:17:27 -0500 Received: from [199.232.76.173] (port=41314 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHbap-0001Px-6x for grub-devel@gnu.org; Mon, 07 Dec 2009 06:17:27 -0500 Received: from 74-93-104-97-washington.hfc.comcastbusiness.net ([74.93.104.97]:45396 helo=sunset.davemloft.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NHbao-0000sN-QT for grub-devel@gnu.org; Mon, 07 Dec 2009 06:17:27 -0500 Received: from localhost (localhost [127.0.0.1]) by sunset.davemloft.net (Postfix) with ESMTP id F2CAC24C6E2; Mon, 7 Dec 2009 03:17:25 -0800 (PST) Date: Mon, 07 Dec 2009 03:17:25 -0800 (PST) Message-Id: <20091207.031725.188441811.davem@davemloft.net> To: grub-devel@gnu.org, phcoder@gmail.com From: David Miller In-Reply-To: <4B1CDD67.20801@gmail.com> References: <20091206131026.GA24598@thorin> <20091206.172252.144134315.davem@davemloft.net> <4B1CDD67.20801@gmail.com> X-Mailer: Mew version 6.2 on Emacs 23.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-2022-jp-2 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: Subject: Re: Broken common.rmk change X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 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, 07 Dec 2009 11:17:28 -0000 From: Vladimir 'φ-coder/phcoder' Serbinenko Date: Mon, 07 Dec 2009 11:48:07 +0100 > The problem actually is the following: > When we're in OS we know the OS device name but not the firmware device > name. So we're able to generate correct root= for kernel command line > but can only guess which names you would need for grub's set root=. The > solution we're going for is to have UUID of fs stored in grub.cfg and go > through all partitions on boot and find the right one nd set it to root > variable. As for passing root= kernel parameter the decision of using > device name or UUID= is based on heuristics (sigh) but you can disable > them altogether in /etc/default/grub: > > # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to > Linux > #GRUB_DISABLE_LINUX_UUID=true UUIDs are convenient but can be very time consuming. Some sparc64 systems come with 10 or 20 block OpenFirmware device aliases, and we're going probe all of them, one by one, to look for the UUID. The firmware device name is so trivially obtainable, especially on ieee1275. That's what the grub-ofpathname tool I wrote does on sparc64. And it's what the 'ofpathname' script used by powerpc on grub does as well.