Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Ou4aD-0000ZQ-DV for mharc-grub-devel@gnu.org; Fri, 10 Sep 2010 10:28:05 -0400 Received: from [140.186.70.92] (port=43218 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ou4aA-0000XP-Hc for grub-devel@gnu.org; Fri, 10 Sep 2010 10:28:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ou4a8-0007OF-1C for grub-devel@gnu.org; Fri, 10 Sep 2010 10:28:02 -0400 Received: from smarthost03.mail.zen.net.uk ([212.23.3.142]:33014) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ou4a7-0007NU-Sr for grub-devel@gnu.org; Fri, 10 Sep 2010 10:28:00 -0400 Received: from [82.69.40.219] (helo=riva.pelham.vpn.ucam.org) by smarthost03.mail.zen.net.uk with esmtp (Exim 4.63) (envelope-from ) id 1Ou4a5-0002jA-Rz for grub-devel@gnu.org; Fri, 10 Sep 2010 14:27:57 +0000 Received: from cjwatson by riva.pelham.vpn.ucam.org with local (Exim 3.36 #1 (Debian)) for grub-devel@gnu.org id 1Ou4a5-0004b4-00; Fri, 10 Sep 2010 15:27:57 +0100 Date: Fri, 10 Sep 2010 15:27:57 +0100 From: Colin Watson To: grub-devel@gnu.org Message-ID: <20100910142756.GT21862@riva.ucam.org> References: <20100910141742.GQ2632@caffeine.csclub.uwaterloo.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100910141742.GQ2632@caffeine.csclub.uwaterloo.ca> User-Agent: Mutt/1.5.18 (2008-05-17) X-Originating-Smarthost03-IP: [82.69.40.219] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: future of grub commands setup and install ? 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, 10 Sep 2010 14:28:03 -0000 On Fri, Sep 10, 2010 at 10:17:42AM -0400, Lennart Sorensen wrote: > On Fri, Sep 10, 2010 at 09:46:53AM +0200, lode leroy wrote: > > I think it would be helpful if a command existed to install grub from grub, > > given a directory /boot/grub/ already present, i.e. Write boot sector+stage1 > > to the disk. It may be easy to copy files onto the filesystem, but not-so-easy > > to create a working native grub. > > grub2 doesn't have a stage1. It creates one after examining the system > it is running on to determine which modules have to be used to create > the stage1. You and lode leroy are both confusing GRUB Legacy's Stage 1.5 (or possibly Stage 2) with Stage 1. GRUB Legacy's Stage 1 is the boot sector, and is precisely equivalent to GRUB 2's boot.img, which is a single 512-byte file. > Also, should it be generating an efi, or pc-bios, or ieee-* image? This is clearly specific to the GRUB build you're using. > With grub1 it was simple. There was one stage1, and a certain set of > stage1.5 files (one per supported filesystem) and a stage2. That was it. > nothing modular, nothing to assemble. If you take all the modules for > grub2, you end up with a 1MB+ stage1 file, which you can't embed in > one track. Modules are built into a core.img object which is analogous to something a bit like GRUB Legacy's Stage 1.5 and a bit like Stage 2. See http://www.gnu.org/software/grub/manual/grub.html#Images for a conversion chart. -- Colin Watson [cjwatson@ubuntu.com]