From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Lp1I7-00078w-Mq for mharc-grub-devel@gnu.org; Wed, 01 Apr 2009 10:19:43 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lp1I5-000784-37 for grub-devel@gnu.org; Wed, 01 Apr 2009 10:19:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lp1Hz-00075f-Jn for grub-devel@gnu.org; Wed, 01 Apr 2009 10:19:39 -0400 Received: from [199.232.76.173] (port=57450 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lp1Hz-00075V-Gv for grub-devel@gnu.org; Wed, 01 Apr 2009 10:19:35 -0400 Received: from aybabtu.com ([69.60.117.155]:60277) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lp1Hz-0006hI-4Z for grub-devel@gnu.org; Wed, 01 Apr 2009 10:19:35 -0400 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtp (Exim 4.69) (envelope-from ) id 1Lp17i-0006yo-28 for grub-devel@gnu.org; Wed, 01 Apr 2009 16:08:58 +0200 Received: from rmh by thorin with local (Exim 4.69) (envelope-from ) id 1Lp1Hw-0007VH-9z for grub-devel@gnu.org; Wed, 01 Apr 2009 16:19:32 +0200 Date: Wed, 1 Apr 2009 16:19:32 +0200 From: Robert Millan To: The development of GRUB 2 Message-ID: <20090401141932.GA28777@thorin> References: <49C63395.9090304@gmail.com> <49D1DAB8.90703@gmail.com> <200904012252.26655.okuji@enbug.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200904012252.26655.okuji@enbug.org> Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: Move loader.c out of the kernel 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: Wed, 01 Apr 2009 14:19:41 -0000 On Wed, Apr 01, 2009 at 10:52:26PM +0900, Yoshinori K. Okuji wrote: > On Tuesday 31 March 2009 17:56:24 phcoder wrote: > > With a new swing in normal.mod splitting I think we should reconsider > > this patch. It's useless to keep loader.c in kernel without boot > > command. IMO it should be moved either to a perate boot.mod (my > > preference) or to minicmd.mod (not a good option IMO) > > As I said, rescue mode is not quite useful without any loader. So the loader > interface should be built into the kernel, and the boot command should be as > well naturally. This presses for more space into core.img, which is highly constrained (specially in weird combinations like raid + lvm or crypto in the future). Why is a loader so important for rescue mode? If the loader would work, it means you can read files, so it should be able to load the rest of modules as well. When user is dumped to rescue mode, usually (at least for reports I dealt with in debian) it means GRUB has a bug or didn't setup itself properly, and the /boot/ directory can't be accessed. A loader wouldn't help in these situations. Also, how do you determine which loaders belong in kernel? There can be many specialized loaders like the linux one. Or we could just put multiboot, but the Multiboot loader is quite complex already, and it still has room for growing. Maybe the answer is to write a very simple Multiboot loader and put that in kernel? -- Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."