public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Make MAX_INIT_ARGS 25
@ 2004-08-05  2:32 Pete Zaitcev
  2004-08-05  5:52 ` Paweł Sikora
  2004-08-05 14:39 ` Olaf Hering
  0 siblings, 2 replies; 8+ messages in thread
From: Pete Zaitcev @ 2004-08-05  2:32 UTC (permalink / raw)
  To: linux-kernel; +Cc: zaitcev, spot, akpm

Hello, everyone:

We at Red Hat shipped a larger number of arguments for quite some time,
it was required for installations on IBM mainframe (s390), which doesn't
have a good way to pass arguments. I tried to submit it before, but only
half-heartedly, because I saw it as not benefitting folks at large, so
why bloat, right?

I really hate carrying divergent patches in Red Hat tree, even small
ones like this one, but there wasn't enough pull to integrate.
Recently I saw patches which try to make the MAX_INIT_ARGS and
MAX_INIT_ENVS configurable. Apparently, it's needed for someone else
besides mainframe now. This is an example (from Mike McLean):

> There are a number of reasonable situations that go past the current 
> limits of 8.  One that comes to mind is when you want to perform a 
> manual vnc install on a headless machine using anaconda.  This requires 
> passing in a number of parameters to get anaconda past the initial 
> (no-gui) loader screens.

I thought about it and decided that making this configurable is more
trouble than it's worth. We'd need a new entry, all to save a few words.
There would be a need to document it, and to ask users "are you sure you
configured your MAX_INIT_FOO to 20?" OTOH, if we just bump it, any
software can just look at version and magically know if the kernel
supports larger number of arguments, at the moment of kernel installation.
Say, if Linus takes it now, 2.6.8 and above would be "ok for jumpstart".

I'd like to ask (Andrew? Linus?) simply to bump the value somewhat,
without any complications. The value of 25 is specifically selected
to show that it's arbitrary. Mike wanted 32, but that just looked too
meaningful.

-- Pete

--- linux-2.6.7/init/main.c	2004-06-16 16:54:07.000000000 -0700
+++ linux-2.6.7-usb/init/main.c	2004-08-04 19:16:22.566593218 -0700
@@ -102,8 +102,8 @@
 /*
  * Boot command-line arguments
  */
-#define MAX_INIT_ARGS 8
-#define MAX_INIT_ENVS 8
+#define MAX_INIT_ARGS 25
+#define MAX_INIT_ENVS 25
 
 extern void time_init(void);
 /* Default late time init is NULL. archs can override this later. */

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-08-06 20:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-05  2:32 Make MAX_INIT_ARGS 25 Pete Zaitcev
2004-08-05  5:52 ` Paweł Sikora
2004-08-05 15:21   ` Pete Zaitcev
2004-08-05 16:13     ` Paul Jackson
2004-08-05 14:39 ` Olaf Hering
2004-08-05 16:08   ` Paul Jackson
2004-08-05 16:12     ` Olaf Hering
2004-08-06 20:10       ` Pete Zaitcev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox