Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1OewlW-0004pG-KS for mharc-grub-devel@gnu.org; Fri, 30 Jul 2010 17:05:14 -0400 Received: from [140.186.70.92] (port=42460 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OewlS-0004mM-6d for grub-devel@gnu.org; Fri, 30 Jul 2010 17:05:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OewlQ-0005ti-Qi for grub-devel@gnu.org; Fri, 30 Jul 2010 17:05:09 -0400 Received: from e24smtp05.br.ibm.com ([32.104.18.26]:36343) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OewlQ-0005t6-G2 for grub-devel@gnu.org; Fri, 30 Jul 2010 17:05:08 -0400 Received: from mailhub1.br.ibm.com (mailhub1.br.ibm.com [9.18.232.109]) by e24smtp05.br.ibm.com (8.14.4/8.13.1) with ESMTP id o6UL2wPB031050 for ; Fri, 30 Jul 2010 18:02:58 -0300 Received: from d24av02.br.ibm.com (d24av02.br.ibm.com [9.8.31.93]) by mailhub1.br.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o6ULA8eQ1138896 for ; Fri, 30 Jul 2010 18:10:08 -0300 Received: from d24av02.br.ibm.com (loopback [127.0.0.1]) by d24av02.br.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o6UL4iYZ014823 for ; Fri, 30 Jul 2010 18:04:44 -0300 Received: from [9.78.135.221] ([9.78.135.221]) by d24av02.br.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id o6UL4hEs014810 for ; Fri, 30 Jul 2010 18:04:43 -0300 From: Manoel Rebelo Abraches To: The development of GNU GRUB In-Reply-To: <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> <20100728144516.GA2632@caffeine.csclub.uwaterloo.ca> Content-Type: text/plain; charset="UTF-8" Date: Fri, 30 Jul 2010 18:04:57 -0300 Message-ID: <1280523897.6717.2.camel@abranches-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by e24smtp05.br.ibm.com id o6UL2wPB031050 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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: Fri, 30 Jul 2010 21:05:11 -0000 On Wed, 2010-07-28 at 10:45 -0400, Lennart Sorensen wrote: > On Wed, Jul 28, 2010 at 05:27:33PM +0300, Vladimir '=CF=86-coder/phcode= r' 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 w= hen > > > the partition tables that the md devices are running on are of type= msdos? > > > How would one make it automatically add the correct prefix (since i= t > > > needs either (hd,msdos#)/boot/grub or (md0)/boot/grub or similar ad= ded > > > instead of the default)? And of course finally it would have to dd= to > > > the target device, rather than just create a file and try to make t= he > > > firmware boot that file. The boot device also has to be the full d= isk > > > on the IBM, not a disk,partition,file combination. > > > =20 > > Normally it should be all autodetected. Could you file a bug report f= or > > this? Could you tell the commands to reproduce it? I have a PPC box b= ut > > it has only one disk but a mdraid on partitions should do it. >=20 > Well the problem appears to be that grub-install does this: >=20 > # Then the partition map module. In order to support partition-less me= dia, > # this command is allowed to fail (--target=3Dfs already grants us that= the > # filesystem will be accessible). > partmap_module=3D > for x in `$grub_probe --target=3Dpartmap --device ${grub_device} 2> /de= v/null`; do > partmap_module=3D"$partmap_module part_$x"; > done >=20 > Unfortunately there is nothing that defines ${grub_device} in the scrip= t. > If it used the target install device, it would in fact get the right > result. >=20 > 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. OF can understand FAT12 filesystem. So the procedure is to mount a FAT12 = partition in /boot/grub and then run grub-install (I have done this before and I boot trough the FAT12 partition). You could do something like: boot hd:1,grub > 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 >=20 > So where is the bug track system? >=20