[klibc] kinit cmdline handling change
maximilian attems
maks at sternwelten.at
Fri May 5 09:39:54 PDT 2006
On Fri, May 05, 2006 at 11:30:41AM -0500, 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).
anyway if you are not using luks you need to pass cryptopts.
also if you are using cryptsetup you have glibc on board.
Debian initramfs-tools exports root and allows its boot scripts
to change it, you might want to read the details
http://bugs.debian.org/358452
regards
--
maks
More information about the klibc
mailing list