Re: [PATCH 2.6.24] chroot= as a new kernel parameter

From: devzero
Date: Fri Mar 07 2008 - 16:04:46 EST


>* H. Peter Anvin <hpa@xxxxxxxxx> wrote:
>
>> It's useless because it's exactly and trivially replaceable with:
>>
>> init=/path/to/any/sbin/chroot /newroot /sbin/init
>
>ok, i didnt realize that this was possible. Ah ... i see,
>init/main.c:init_setup() is special and picks the whole boot parameter
>string up to the end, right? So init= is the only multi-parameter
>init-parameter.
>
> Ingo

wouldn`t it be useful to add a hint to kernel-parameters.txt ?


for now it just reads:

init= [KNL]
Format: <full_path>
Run specified binary instead of /sbin/init as init
process.

so, if there is no hint about that specialty (i.e. passing params to init, using for chroot etc..), no user will ever now.....

roland
_____________________________________________________________________
Unbegrenzter Speicherplatz für Ihr E-Mail Postfach? Jetzt aktivieren!
http://freemail.web.de/club/landingpage.htm/?mc=025555

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/