Messages in this thread | | | Subject | Re: [PATCH] chroot= as a new kernel parameter | From | Alexandre Oliva <> | Date | Sat, 01 Mar 2008 15:47:53 -0300 |
| |
On Mar 1, 2008, Pawel Plociennik <paplociennik@gmail.com> wrote:
> In the short this patch has added a new chroot= kernel parameter > which can be used to changing a chroot of an init process before it > will has been runed.
Hey, this is cool, I've wanted something like this for a long time. However, I was thinking of implementing it in mkinitrd, not in the kernel proper.
OT1H, having it in the kernel proper makes it easier to support even on distros whose mkinitrd doesn't support this stuff, or that don't even use an initrd. OTOH, having it in mkinitrd means you can use this even on distros whose kernels don't support chroot=.
And then, given that booting up a kernel from one distro on another requires setting up /lib/modules for proper functioning (unless your mkinitrd does that for you, which is something else I've been thinking of doing for similar reasons), I figured changing mkinitrd might be a better way to go.
-- Alexandre Oliva http://www.lsd.ic.unicamp.br/~oliva/ FSF Latin America Board Member http://www.fsfla.org/ Red Hat Compiler Engineer aoliva@{redhat.com, gcc.gnu.org} Free Software Evangelist oliva@{lsd.ic.unicamp.br, gnu.org}
| |