lkml.org 
[lkml]   [2008]   [Mar]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 2.6.24] chroot= as a new kernel parameter
Date
Christian Kujau wrote:
> On Fri, 7 Mar 2008, devzero@web.de wrote:
> >> * H. Peter Anvin <hpa@zytor.com> wrote:
> >>> init=/path/to/any/sbin/chroot /newroot /sbin/init
>
> Great, I was looking for something like this myself some time ago!
>
> > wouldn`t it be useful to add a hint to kernel-parameters.txt ?
>
> How about:
>
> 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.

Nice try, but this only works on the surface. Try remounting root to see what I mean.

Now, for a patch that actually does what we want, try this:

[PATCH][retry-2] init: Introduce rootdir bootparm to select which dir to sys_chroot


Thanks!

--
Al



\
 
 \ /
  Last update: 2008-03-08 15:13    [W:0.031 / U:0.156 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site