Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1EVOFW-00071v-J3 for mharc-grub-devel@gnu.org; Fri, 28 Oct 2005 03:02:03 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EVOFS-0006zW-Fg for grub-devel@gnu.org; Fri, 28 Oct 2005 03:01:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EVOFO-0006we-Iz for grub-devel@gnu.org; Fri, 28 Oct 2005 03:01:56 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EVOFM-0006vR-6e for grub-devel@gnu.org; Fri, 28 Oct 2005 03:01:52 -0400 Received: from [82.170.12.182] (helo=compaq.thuisdomein) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EVOFL-0004Er-OQ for grub-devel@gnu.org; Fri, 28 Oct 2005 03:01:52 -0400 Received: from compaq.thuisdomein (compaq.thuisdomein [127.0.0.1]) by compaq.thuisdomein (8.13.4/8.13.4) with ESMTP id j9S73LpS006955 for ; Fri, 28 Oct 2005 09:03:21 +0200 Received: (from peb@localhost) by compaq.thuisdomein (8.13.4/8.13.4/Submit) id j9S73LSv006954 for grub-devel@gnu.org; Fri, 28 Oct 2005 09:03:21 +0200 X-Authentication-Warning: compaq.thuisdomein: peb set sender to pebolle@tiscali.nl using -f From: Paul Bolle To: The development of GRUB 2 In-Reply-To: <200510280523.57094.okuji@enbug.org> References: <1129923494.2588.21.camel@compaq.thuisdomein> <200510220023.41732.okuji@enbug.org> <1130103538.2713.10.camel@compaq.thuisdomein> <200510280523.57094.okuji@enbug.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Fri, 28 Oct 2005 09:03:20 +0200 Message-Id: <1130483000.2569.12.camel@compaq.thuisdomein> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 (2.2.3-2.fc4) Subject: Re: grub-setup: --no-boot option? 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: Fri, 28 Oct 2005 07:02:00 -0000 On Fri, 2005-10-28 at 05:23 +0200, Yoshinori K. Okuji wrote: > On Sunday 23 October 2005 11:38 pm, Paul Bolle wrote: > > This might suggest to add an option to grub-mkimage (say: > > "--runtime-dir") to overrule the grub_prefix variable set in the image. > > > I'd say, this is against the philosophy of GRUB: everything should be dynamic > at run time. So the best way is to make it possible to pass an optional > argument which specifies a prefix to GRUB. For example: > > kernel /boot/grub2/core.img prefix=(hd0,2)/boot/grub2 I've been thinking about that too. Half of the solution seems to be to have GRUB2 (check for) and use the multiboot information structure that might be passed to it at when launched (as that structure contains (a pointer to) the command line). A few (rather badly failed) tests showed me that this requires a non-trivial (for me at least) amount of assembly hacking. The other half of the solution would probably be the scripting support people seem to be working on (and making the command line available to scripts). But that's just a guess ... Paul Bolle