logo       

/proc/cmdline limit of 256 chars: msg#00001

Subject: /proc/cmdline limit of 256 chars
Hi,

I just wanted to add a few bootup options to my LiveCD (such as desired
X-resolution, default editor, username preferences etc. (got some
inspiration from Paul Kessler) but I have the problem that /proc/cmdline
seems to be limited to 256 chars: I appended some options to the
standard kernel-options and the CD didn't boot any more (when I do this
via livecd-stage2.conf). If I append the options via commandline on the
boot-prompt, they are ignored.

I found out, that the maximum length of the command line is 256 chars
('cat /proc/cmdline | wc -c'), the rest is truncated. One problem is,
that the default options for a livecd take up very much space. This
could be fixed in genkernel.

On the other hand, I found a (pretty recent) kernel patch, that
increases this limit to 512 chars:

http://syslinux.zytor.com/archives/2005-June/005313.html

As it seems, syslinux 3.09 (which can be used with genkernel) already
supports it. Maybe it can be included in gentoo-sources? I checked with
gentoo-sources-2.6.13-r2 and the feature is not included.

Greetings,

Georg


<Prev in Thread] Current Thread [Next in Thread>