[klibc] kinit cmdline handling change

H. Peter Anvin hpa at zytor.com
Fri May 5 15:18:09 PDT 2006


Aaron Griffin wrote:
> The following patch swaps the command line handling of kinit.  It
> seems apparent that, if one were to call kinit like so:
>   kinit root=/foo/bar
> They would be attempting to override the /proc/cmdline.  As it stands,
> kinit parses the /proc/cmdline *first*, meaning the above does not
> work.
> 
> Just for a simple use case:
> User A has an encrypted root device, root=/dev/hda3
> Some init scripts detect this, and set up the dev-mapper mapping, as
> /dev/mapper/cryptoroot.
> 
> The scripts then need a way to replace the root parameter, so that
> kinit will load off the cryptoroot device, instead of the encrypted
> volume.  As it stands there is no way to do this (/proc/cmdline is
> readonly).

That makes sense.

	-hpa



More information about the klibc mailing list