Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Oe7sq-0001iN-Pf for mharc-grub-devel@gnu.org; Wed, 28 Jul 2010 10:45:24 -0400 Received: from [140.186.70.92] (port=36288 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oe7so-0001iI-3x for grub-devel@gnu.org; Wed, 28 Jul 2010 10:45:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oe7sm-0000vo-Ln for grub-devel@gnu.org; Wed, 28 Jul 2010 10:45:21 -0400 Received: from caffeine.csclub.uwaterloo.ca ([129.97.134.17]:60910) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oe7sm-0000vL-JV for grub-devel@gnu.org; Wed, 28 Jul 2010 10:45:20 -0400 Received: from caffeine.csclub.uwaterloo.ca (localhost [127.0.0.1]) by caffeine.csclub.uwaterloo.ca (Postfix) with ESMTP id 244E6CE85 for ; Wed, 28 Jul 2010 10:45:18 -0400 (EDT) Received: by caffeine.csclub.uwaterloo.ca (Postfix, from userid 20367) id C6168CE87; Wed, 28 Jul 2010 10:45:16 -0400 (EDT) Date: Wed, 28 Jul 2010 10:45:16 -0400 To: The development of GNU GRUB Message-ID: <20100728144516.GA2632@caffeine.csclub.uwaterloo.ca> References: <20100722212326.GJ2632@caffeine.csclub.uwaterloo.ca> <4C492F0B.6020701@gmail.com> <20100723135737.GK2632@caffeine.csclub.uwaterloo.ca> <20100723153925.GL2632@caffeine.csclub.uwaterloo.ca> <4C49CB17.5040307@gmail.com> <20100723173608.GM2632@caffeine.csclub.uwaterloo.ca> <20100723175634.GO2632@caffeine.csclub.uwaterloo.ca> <20100723183548.GQ2632@caffeine.csclub.uwaterloo.ca> <20100723200256.GR2632@caffeine.csclub.uwaterloo.ca> <4C503E55.7030300@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4C503E55.7030300@gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) From: lsorense@csclub.uwaterloo.ca (Lennart Sorensen) X-Virus-Scanned: ClamAV using ClamSMTP Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: grub2 on power6 box. 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: Wed, 28 Jul 2010 14:45:23 -0000 On Wed, Jul 28, 2010 at 05:27:33PM +0300, Vladimir '=CF=86-coder/phcoder'= Serbinenko wrote: > On 07/23/2010 11:02 PM, Lennart Sorensen wrote: > > So how would one explain to grub-install that it needs part_msdos whe= n > > the partition tables that the md devices are running on are of type m= sdos? > > How would one make it automatically add the correct prefix (since it > > needs either (hd,msdos#)/boot/grub or (md0)/boot/grub or similar adde= d > > instead of the default)? And of course finally it would have to dd t= o > > the target device, rather than just create a file and try to make the > > firmware boot that file. The boot device also has to be the full dis= k > > on the IBM, not a disk,partition,file combination. > > =20 > Normally it should be all autodetected. Could you file a bug report for > this? Could you tell the commands to reproduce it? I have a PPC box but > it has only one disk but a mdraid on partitions should do it. Well the problem appears to be that grub-install does this: # Then the partition map module. In order to support partition-less medi= a, # this command is allowed to fail (--target=3Dfs already grants us that t= he # filesystem will be accessible). partmap_module=3D for x in `$grub_probe --target=3Dpartmap --device ${grub_device} 2> /dev/= null`; do partmap_module=3D"$partmap_module part_$x"; done Unfortunately there is nothing that defines ${grub_device} in the script. If it used the target install device, it would in fact get the right result. Now of course another issue is that the script aborts if /boot/grub is not a seperate mount point. Well on the IBM powerpc there is no reason to make it a seperate mount point since you can't boot from a partition with a filesystem anyhow. I am not sure how one would go about getting grub-install to figure out the grub name for the filesystem holding /boot/grub so that it can pass the prefix, since it could be (md0)/boot/grub or (md/0)/boot/grub So where is the bug track system? --=20 Len Sorensen