Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1G6F3K-0000SN-EV for mharc-grub-devel@gnu.org; Thu, 27 Jul 2006 19:14:02 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G6F3J-0000Rz-Ie for grub-devel@gnu.org; Thu, 27 Jul 2006 19:14:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G6F3H-0000RE-GC for grub-devel@gnu.org; Thu, 27 Jul 2006 19:14:01 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G6F3H-0000R3-3g for grub-devel@gnu.org; Thu, 27 Jul 2006 19:13:59 -0400 Received: from [82.94.249.44] (helo=neonescio.viaisn.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1G6F58-0003Gn-Fk for grub-devel@gnu.org; Thu, 27 Jul 2006 19:15:54 -0400 Received: from dijkstra.dekkers.cx ([2001:838:3ce::1] ident=Debian-exim) by neonescio.viaisn.org with esmtpsa (TLS-1.0:RSA_AES_256_CBC_SHA:32 CV=0) (Exim 4.50 #1) id 1G6F3D-0007Fr-Ot for grub-devel@gnu.org; Fri, 28 Jul 2006 01:13:55 +0200 Received: from localhost ([127.0.0.1] helo=dijkstra.dekkers.cx ident=jeroen) by dijkstra.dekkers.cx with esmtp (Exim 4.62) (envelope-from ) id 1G6F3C-00024v-Ml for grub-devel@gnu.org; Fri, 28 Jul 2006 01:13:54 +0200 Date: Fri, 28 Jul 2006 01:13:54 +0200 Message-ID: <87irliiqtp.wl%jeroen@vrijschrift.org> From: Jeroen Dekkers To: The development of GRUB 2 In-Reply-To: <200607280020.42679.okuji@enbug.org> References: <87slkr2kgs.wl%jeroen@vrijschrift.org> <200607280020.42679.okuji@enbug.org> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.0.50 (x86_64-pc-linux-gnu) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Subject: Re: Support for RAID in grub-setup 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: Thu, 27 Jul 2006 23:14:01 -0000 At Fri, 28 Jul 2006 00:20:42 +0200, Yoshinori K. Okuji wrote: > > On Monday 24 July 2006 15:36, Jeroen Dekkers wrote: > > Grub-setup will ask Linux for the members of the RAID array that is > > given as destination device. It will then install on the MBRs of those > > devices and embed core.img after MBR. If it can't embed the core image > > it will fail, I'm not sure whether we should support reading core.img > > from a RAID array... > > Personally, I like to see that every part can be read from a RAID device, but > maybe not so important in reality.... It would be possible to calculate how to write the image to the file so it ends up being a consecutive image on the physical disk. But I think it's not worth the trouble, especially given that we can always embed the kernel if we keep the size below the 31k. > > I let grub-setup put the RAID device directly into the prefix and put > > -2 in grub_install_dos_part. I've modified make_install_device() in > > init.c to leave the prefix alone when grub_install_dos_part is -2. > > So, if my understanding is correct, core.img is read from a single disk, but > the rest is handled in a RAID device, right? Yes, core.img is embedded after the MBR on the specific disk. If you can boot from a disk, it's a pretty safe to assume thatt you can also read core.img for the same disk. Core.img includes the RAID module and that is used to read everything else it needs. Jeroen Dekkers