chroot= as a new kernel parameter
Quoted 12 lines · H. Peter Anvin
Quoted 4 lines
It's useless because it's exactly and trivially replaceable with:
init=/path/to/any/sbin/chroot /newroot
/sbin/initok, 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
Quoted 2 lines · On Fri, 7 Mar 2008, [email protected] wrote:
Quoted 2 lines · H. Peter Anvin
Quoted 1 line
init=/path/to/any/sbin/chroot /newroot
/sbin/init
Great, I was looking for something like this myself some time ago!
Quoted 1 line
wouldn`t it be useful to add a hint to kernel-parameters.txt ?
How about:
Documentation/kernel-parameters.txt.edited renamed from Documentation/kernel-parameters.txt +5 -2
@@ -799,9 +799,12 @@ and is between 256 and 4096 characters. See header of drivers/scsi/in2000.c. init= [KNL] - Format: <full_path> + Format: <full_path> <options> Run specified binary instead of /sbin/init as init - process. + process. init= is able to take more than one option + allowing us to do: + init=/path/to/any/sbin/chroot /newroot /sbin/init + ...and thus booting into /newroot. initcall_debug [KNL] Trace initcalls as they are executed. Useful for working out where the kernel is dying during
Thanks,
Christian.
Signature · 3 lines
BOFH excuse #116: the real ttys became pseudo ttys and vice-versa.