From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1IChwZ-00009S-UB for mharc-grub-devel@gnu.org; Sun, 22 Jul 2007 16:22:19 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IChwX-0008W0-Jq for grub-devel@gnu.org; Sun, 22 Jul 2007 16:22:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IChwV-0008Tl-PC for grub-devel@gnu.org; Sun, 22 Jul 2007 16:22:16 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IChwV-0008TW-Dk for grub-devel@gnu.org; Sun, 22 Jul 2007 16:22:15 -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 1IChwV-0005t7-0N for grub-devel@gnu.org; Sun, 22 Jul 2007 16:22:15 -0400 Received: from [192.168.10.6] (helo=aragorn) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1IChwT-0004pc-I0 for grub-devel@gnu.org; Sun, 22 Jul 2007 22:22:13 +0200 Received: from rmh by aragorn with local (Exim 4.63) (envelope-from ) id 1IChzF-0002Sw-58 for grub-devel@gnu.org; Sun, 22 Jul 2007 22:25:05 +0200 Date: Sun, 22 Jul 2007 22:25:05 +0200 From: Robert Millan To: The development of GRUB 2 Message-ID: <20070722202505.GA9408@aragorn> References: <1183565937.7721.41.camel@diesel> <20070710100444.GA5222@sahara.iti.upv.es> <20070710141052.GB8909@aragorn> <20070710192627.GA21168@nubol.oskuro.net> <20070713221616.GB20231@aragorn> <20070722093342.GA14583@aragorn> <87wswscxmy.fsf@xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87wswscxmy.fsf@xs4all.nl> Organization: free as in freedom X-Message-Flag: Microsoft discourages use of Outlook. X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: Genre and OS details not recognized. Subject: Re: OF disk naming scheme (Re: another regression on Efika) 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: Sun, 22 Jul 2007 20:22:17 -0000 On Sun, Jul 22, 2007 at 04:37:41PM +0200, Marco Gerards wrote: > Robert Millan writes: > > > On Sat, Jul 14, 2007 at 12:16:16AM +0200, Robert Millan wrote: > >> On Tue, Jul 10, 2007 at 09:26:27PM +0200, Jordi Mallach wrote: > >> > On Tue, Jul 10, 2007 at 04:10:52PM +0200, Robert Millan wrote: > >> > > What naming/numbering scheme does this follow when you add more disks? > >> > > >> > hd, hd1, hd2. Luckily Mozillion has Firewire disks. > >> > >> My Efika counts: hd, hd0 ... > >> > >> IEEE 1275 does not seem to cover this. What scheme should we follow when > >> generating device.map ? > > > > Since "hd, hd1, hd2 ..." seems to be much more common, I propose we use that > > and let user override it via device.map in case of disparity (which may only > > happen in systems with more than 1 disk). > > Can we actually read via /proc or so how this mapping in reality is > realised? AFAIK we can only read the full OF path from /proc (with helper tools like ofpath / ofpathname), but not the short alias which grub uses. These can only be obtained when grub is running. If the proposed solution is not good, maybe we could instead remap all disks to "standard" grub device names (hd0, hd1..), which grub-mkdevicemap already knows how to guess reasonably well. -- Robert Millan My spam trap is honeypot@aybabtu.com. Note: this address is only intended for spam harvesters. Writing to it will get you added to my black list.