Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1DNF1s-00040C-LJ for mharc-grub-devel@gnu.org; Sun, 17 Apr 2005 15:02:00 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DNF1r-0003yx-1v for grub-devel@gnu.org; Sun, 17 Apr 2005 15:01:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DNEzd-0003Bc-Qe for grub-devel@gnu.org; Sun, 17 Apr 2005 14:59:44 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DNEzb-00032g-F0 for grub-devel@gnu.org; Sun, 17 Apr 2005 14:59:39 -0400 Received: from [209.86.89.69] (helo=smtpauth09.mail.atl.earthlink.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DNEkL-0000b2-VY for grub-devel@gnu.org; Sun, 17 Apr 2005 14:43:54 -0400 Received: from [63.246.184.80] (helo=[192.168.0.101]) by smtpauth09.mail.atl.earthlink.net with asmtp (Exim 4.34) id 1DNEj0-0000zG-QW for grub-devel@gnu.org; Sun, 17 Apr 2005 14:42:30 -0400 Mime-Version: 1.0 (Apple Message framework v619.2) In-Reply-To: <87br8fkcu4.fsf@student.han.nl> References: <20050414023823.GA24293@miracle> <87br8fkcu4.fsf@student.han.nl> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <1749395574fb7306baf244c6d5d146bb@penguinppc.org> Content-Transfer-Encoding: 7bit From: Hollis Blanchard Date: Sun, 17 Apr 2005 13:42:29 -0500 To: The development of GRUB 2 X-Mailer: Apple Mail (2.619.2) X-ELNK-Trace: 77a46389d001b1f223bcf3e39c2f8b5f1aa676d7e74259b7b3291a7d08dfec79c56be4d03741b39564b3b22c7da76a54350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 63.246.184.80 Subject: Re: [patch] set prefix on PPC 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, 17 Apr 2005 19:01:59 -0000 On Apr 15, 2005, at 3:24 PM, Marco Gerards wrote: > When booting on the pegasosII I see the following problem: > > grub> set > prefix=(/pci@80000000/ide@C,1/disk@0,0,3) > > That is when I am booting using `boot hd:4 grub)'. > > The prefix contains an OF device name which will not work in GRUB, > mainly because of the comma's. What, a disk name with a comma in it?! Gee, I wish somebody had realized this would be a problem. > Would it be possible to lookup the OF > path in /aliases and set the prefix to the alias? That will be > something that will work and is more user friendly I think. I agree, using the alias is much more user-friendly, and that's the only reason I'm comfortable doing it. I will send the revised patch in a moment. Interestingly, as Nico mentioned before, there are often multiple aliases to the same device. In my case, when I boot from "hd", prefix is set to "ultra0", because that comes first in the /aliases property list. Everything works, but it could be a source of user confusion. > Another thing we could do, but which is a bit more ugly, is creating > an alias. I am not sure if it is possible to create an OF alias from > GRUB, but I assume it will be. It is quite rude to unexpectedly clobber a user's devalias. With that in mind, what is the exact algorithm you're proposing? > Shouldn't the prefix end with a `/' like you mentioned in one of your > other emails. So in this case: > > prefix=(/pci@80000000/ide@C,1/disk@0,0,3)/ The slash was removed when the path was truncated to the directory. -Hollis