Re: [PATCH][TAKE 4] THE LINUX/I386 BOOT PROTOCOL - Breaking the 256 limit

John Coffman
2006-05-06T04:03:22Z

At 02:57 PM Friday 5/5/2006, H. Peter Anvin wrote:
Okay, let me ask this:

>If the *kernel* limit is modified, but the LILO limit is not, what
>will happen? This is the real crux of the matter.

The length of the kernel command line will be limited by the size of
the boot loader buffer. LILO always inserts a NUL terminator.

--John

P.S. The LILO command line buffer has always been 1 sector (512
bytes); however, only the first half is actually used for the command
line. No kernel can do any harm by setting "boot_cmdline[511] = 0;"
for any version of LILO back to version 20 (and probably before).

PGP KeyID: 6781C9C8 (good until 31-Dec-2008)
Keyserver at ldap://keyserver.pgp.com OR http://pgp.mit.edu
LILO links at http://freshmeat.net/projects/lilo
and Help link at http://lilo.go.dyndns.org