[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080306205751.GG8953@1wt.eu>
Date: Thu, 6 Mar 2008 21:57:52 +0100
From: Willy Tarreau <w@....eu>
To: Peter Zijlstra <a.p.zijlstra@...llo.nl>
Cc: Pavel Machek <pavel@....cz>, Ingo Molnar <mingo@...e.hu>,
Chris Wedgwood <cw@...f.org>,
Pawel Plociennik <paplociennik@...il.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2.6.24] chroot= as a new kernel parameter
On Thu, Mar 06, 2008 at 08:46:21PM +0100, Peter Zijlstra wrote:
>
> On Thu, 2008-03-06 at 12:53 +0100, Pavel Machek wrote:
> > On Thu 2008-03-06 12:37:29, Ingo Molnar wrote:
> > >
> > > * Chris Wedgwood <cw@...f.org> wrote:
> > >
> > > > > But given an existing initrd (which might have come from the distro,
> > > > > etc.) i prefer adding boot options instead of modifying the initrd.
> > > >
> > > > I assume this is so you have have /distro1 /distro2 and use your boot
> > > > option to (help) select which one you boot into?
> > >
> > > while i have no personal use for chroot=, i generally test distros that
> > > way, yes - and i try to keep them as unmodified as possible.
> > >
> > > "Use the initrd as an extended boot commandline" is a poor answer IMO.
> > >
> > > _Everything_ we do on the boot commandline that affects user-space can
> > > be done in an initrd in theory - but still we have hundreds of boot
> > > options.
> >
> > Yes, please. chroot= is useful, nonintrusive, and it just should be there.
>
> As much as I hate initrd, and all features building dependencies on it,
> I don't see the need for either initrd or kernel support for chroot= as
> it can be trivially done using a slightly longer init=.
I don't want to play devil's advocate, but there is clearly *more* bloat
in adding a "chroot" executable in a directory than having a syscall and
boot option in the kernel. Not to mention that the chroot binary must be
replicated into all the available chroots (ok sometimes maybe it can be
achieved using hardlinks).
While I think that the feature does not bring much for mainline distros,
it makes more sense for embedded or rescue systems where init is responsible
for setting the system up, including extraction of libs and binaries (eg:
run busybox --install) or mounting of other filesystems.
Willy
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists