From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1GYS9j-0003s4-OC for mharc-grub-devel@gnu.org; Fri, 13 Oct 2006 14:53:15 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GYS9h-0003oi-8V for grub-devel@gnu.org; Fri, 13 Oct 2006 14:53:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GYS9g-0003nf-AT for grub-devel@gnu.org; Fri, 13 Oct 2006 14:53:12 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GYS9g-0003na-4A for grub-devel@gnu.org; Fri, 13 Oct 2006 14:53:12 -0400 Received: from [212.85.152.101] (helo=kotoba.storever.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GYSIA-0002qx-Vg for grub-devel@gnu.org; Fri, 13 Oct 2006 15:01:59 -0400 Received: from kotoba.oasis.nexedi.com (kotoba.oasis.nexedi.com [212.85.152.101]) by kotoba.storever.com (Postfix) with ESMTP id DBFCE3CC46ABE for ; Fri, 13 Oct 2006 23:24:20 +0200 (CEST) Received: from [??1] (localhost [127.0.0.1]) by kotoba.storever.com (Postfix) with ESMTP id 924CD3CC46ABD for ; Fri, 13 Oct 2006 23:24:20 +0200 (CEST) From: "Yoshinori K. Okuji" Organization: enbug.org To: The development of GRUB 2 Date: Fri, 13 Oct 2006 20:53:09 +0200 User-Agent: KMail/1.8.2 References: <871wpg17df.fsf@xs4all.nl> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200610132053.09465.okuji@enbug.org> X-Bogosity: No, tests=bogofilter, spamicity=0.497728, version=0.17.2 Subject: Re: how to increase commandline size (patch + changelog) 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, 13 Oct 2006 18:53:13 -0000 On Tuesday 10 October 2006 19:17, Jeff Chua wrote: > On Tue, 10 Oct 2006, Marco Gerards wrote: > > Hollis Blanchard writes: > >> What exactly happens if we give the kernel a longer cmdline than it > >> supports? Does it just truncate, or fail to boot? > > > > It truncates. > > > >> Why not allow users to pass as much as they want, and just warn them if > >> it's >255? > > > > I am not sure what the impact is. Linux has a memory map and I assume > > the memory after the commandline is used for other things, or might be > > overwritten. > > Is it possible to "calculate" the needed offset for the exact cmdline > length user pass in to grub and set this in grub2/kern/i386/pc/startup.S, > then we don't need to worry about what the user pass in. I do not like it very much. Linux specifies how it is loaded precisely, so we should follow it carefully. Even if loadlin passes anything and it is useful for you, it is a bug feature, and I don't appreciate that way. BTW this is a kind of FAQ. I have answered the same question several times until now. All I have been saying is that you should improve Linux before changing GRUB. I thought someone took an action for this, but the specification hasn't changed AFAIK. Okuji