[arch-projects] [mkinitcpio] [RFC] Rewrite parse_cmdline (again)

Thomas Bächler thomas at archlinux.org
Fri Apr 15 07:16:15 EDT 2011

Am 15.04.2011 12:22, schrieb Dave Reisner:
> Cool, good to see a breakdown of how the cmdline parameters are passed.
> I didn't come across any of this in my googling adventures. 

Part of it is from the kernel documentation. Part of it is guesses based
on what I've seen.

> I do notice,
> however, that only simple words (not variable decls) at the _end_ of the
> cmdline are passed on as positional parameters to init. Anything else
> seems to be ignored.

I think everything after init= or rdinit= is passed. If neither init or
rdinit is specified, you might be right with your assumption. I didn't
investigate this too far, as we simply pass on those arguments with "$@"
to init.

(Btw, init= is another variable that (like root=) isn't passed by the

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-projects/attachments/20110415/1db632cc/attachment.asc>

More information about the arch-projects mailing list