From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JtjJa-00066J-Ki for mharc-grub-devel@gnu.org; Wed, 07 May 2008 09:04:10 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JtjJY-00065a-Cx for grub-devel@gnu.org; Wed, 07 May 2008 09:04:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JtjJW-00064a-K9 for grub-devel@gnu.org; Wed, 07 May 2008 09:04:07 -0400 Received: from [199.232.76.173] (port=48969 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JtjJW-00064Q-EL for grub-devel@gnu.org; Wed, 07 May 2008 09:04:06 -0400 Received: from aybabtu.com ([69.60.117.155]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JtjJV-0003ep-RQ for grub-devel@gnu.org; Wed, 07 May 2008 09:04:06 -0400 Received: from [192.168.10.6] (helo=thorin) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1JtjJI-0004vP-Tv for grub-devel@gnu.org; Wed, 07 May 2008 15:03:54 +0200 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1JtjIZ-0004TC-8t for grub-devel@gnu.org; Wed, 07 May 2008 15:03:07 +0200 Date: Wed, 7 May 2008 15:03:07 +0200 From: Robert Millan To: The development of GRUB 2 Message-ID: <20080507130307.GD16492@thorin> References: <4807AA02.1020909@mail.berlios.de> <20080418132858.GH29226@thorin> <480A02F3.7000504@mail.berlios.de> <20080420100713.GA16764@thorin> <1208773866.29071.11.camel@dv> <20080506151800.GA25697@thorin> <1210088628.2796.14.camel@dv> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1210088628.2796.14.camel@dv> Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: retiring device.map X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 May 2008 13:04:08 -0000 On Tue, May 06, 2008 at 11:43:48AM -0400, Pavel Roskin wrote: > On Tue, 2008-05-06 at 17:18 +0200, Robert Millan wrote: > > > I completely agree. How do we go about this? First of all we need support > > for labels, right? > > We have it already in the "search" command. Of course, there is always > room for improvement. GRUB doesn't recognize Linux swap labels. It > cannot set root to, say, partition 3 on a disk where partition 1 has the > given label. Sorry, I was confusing labels with UUIDs. The problem with labels is they're not garanteed to be unique, right? So maybe we need support for UUIDs.. > Anyway, the fix belongs to the installer. The first step would be not > to use device.map is it's not needed. In other words, if it's not a > cross-device install, don't read device.map and don't try to create it. I think this isn't an easy as it looks. grub-setup works much like grub-emu in that it uses code from outside util/, which only understands devices when represented in GRUB syntax. Maybe we could force-feed it something like "(/dev/something)" as if it were a GRUB drive, but then how would it know how are partitions represented by the OS? (%d, p%d, etc) > Finally, update-grub should be modified to look for partitions by > labels. We can do this already, without changing how device.map works. Though, we need to reuse the same code in GRUB to obtain the labels (for robustness), which would need some new option in grub-probe or so. -- Robert Millan I know my rights; I want my phone call! What use is a phone call… if you are unable to speak? (as seen on /.)