Re: [PATCH RESEND] Documentation: update kernel parameter limit notes
From: James Addison
Date: Mon Mar 06 2023 - 09:27:15 EST
On Sun, 5 Mar 2023 at 23:17, Randy Dunlap <rdunlap@xxxxxxxxxxxxx> wrote:
> I looked at this again. It's not a limit on the number of kernel command line
> parameters AFAICT. It's a limit on the number of parameters that are passed to
> the init process. Basically any parameter that is not recognized as a kernel
> parameter OR anything that is after "--" on the kernel command line is put into
> an array of limited size for passing to the init process.
Ah: that completely explains it, thank you; my testing was inadequete.
I had been testing this using fairly-arbitrary (and therefore unrecognized)
parameter names, so it is expected and correct that when the number of those
exceeds MAX_INIT_ARGS, the kernel does not boot.
For completeness I'll perform similar testing soon using known-parameter names.