From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Ou4QF-0001VB-Uo for mharc-grub-devel@gnu.org; Fri, 10 Sep 2010 10:17:47 -0400 Received: from [140.186.70.92] (port=51519 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ou4QD-0001V6-Ct for grub-devel@gnu.org; Fri, 10 Sep 2010 10:17:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ou4QC-0004Pl-66 for grub-devel@gnu.org; Fri, 10 Sep 2010 10:17:45 -0400 Received: from caffeine.csclub.uwaterloo.ca ([129.97.134.17]:53618) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ou4QC-0004P7-3w; Fri, 10 Sep 2010 10:17:44 -0400 Received: from caffeine.csclub.uwaterloo.ca (localhost [127.0.0.1]) by caffeine.csclub.uwaterloo.ca (Postfix) with ESMTP id CDF7CACD9; Fri, 10 Sep 2010 10:17:42 -0400 (EDT) Received: by caffeine.csclub.uwaterloo.ca (Postfix, from userid 20367) id C06ECAD03; Fri, 10 Sep 2010 10:17:42 -0400 (EDT) Date: Fri, 10 Sep 2010 10:17:42 -0400 To: The development of GNU GRUB Message-ID: <20100910141742.GQ2632@caffeine.csclub.uwaterloo.ca> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) From: lsorense@csclub.uwaterloo.ca (Lennart Sorensen) X-Virus-Scanned: ClamAV using ClamSMTP X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: rmh@gnu.org 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:17:46 -0000 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. Of course it also needs to understand how much space there is for this stage1 file, which means understanding filesystems or at least partition layout specifics. Also, should it be generating an efi, or pc-bios, or ieee-* image? 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. -- Len Sorensen