From: Raz Ben Yehuda <rbenyehuda@manz.com>
To: Kay Sievers <kay.sievers@vrfy.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>,
"wad@chromium.org" <wad@chromium.org>,
Rasty Slutsker <RSlutsker@manz.com>,
Lior Brafman <LBrafman@manz.com>, <linux-kernel@vger.kernel.org>
Subject: Re: Subject:[PATCH 1:1] boot paramer "root=" gets a list of devices
Date: Sun, 18 Dec 2011 10:54:46 +0200 [thread overview]
Message-ID: <1324198486.4924.3.camel@raz> (raw)
In-Reply-To: <CAPXgP12QS3jGi3pcEhSAoGcWdtjmujL-HP69Cgy9_+kRLFq1sQ@mail.gmail.com>
On Thu, 2011-12-15 at 19:11 +0100, Kay Sievers wrote:
> On Thu, Dec 15, 2011 at 16:22, H. Peter Anvin <hpa@zytor.com> wrote:
> > On 12/15/2011 07:19 AM, Raz Ben Yehuda wrote:
> >>>
> >>> To which point I have to ask, once again, at which point we stop putting
> >>> this stuff in the kernel to "bypass the need for initramfs"...
> >>
> >> because there are times where we cannot use initramfs. is this a problem
> >> with way i phrase or with with the whole idea ?
>
> I don't see why stuff needs to search a hard-coded list of stuff. That
> logic seems pretty much backwards to me. You either use the GPT stuff
> that allows to flag the right partition to boot from a set of
> partitions, or you go as far as make the kernel parse the filesystem
> UUID of partitions. But hard-coding search lists on the commandline, I
> really don't understand.
Will GPT or fs UUID parsing solve the problem of having the kernel
think that hda has the root filesystem while hdc has it ?
> > There are problems with the whole concept of "cannot use initramfs". We
> > allow the initramfs to be integrated with the kernel image for a reason, for
> > example.
> >
> > I'm obviously ranting on this in part to make people think about what they
> > are doing, and partly to remind that the more complex the in-kernel
> > root-mounting code get, the more it might be worth reconsidering klibc in
> > the kernel build tree.
>
> I think the whole picture of klibc is confusing and I very much don't
> want to see that busybox-style hacking in the kernel sources.
>
> Distros can not afford to support 2 libcs at bootup, and the distro
> initramfss gets so complicated today, that a klibc-only solution does
> not really work. So we end up with 2 libcs in the same initramfs
> image, which makes zero sense. Leave alone the fact, that the klibc
> tools duplicate all the stuff that already works in the real root in a
> completely different and mostly insufficient and sometimes scary way.
>
> The thing is, if the setup is that simple that klibc works, it is very
> likely that the current in-kernel mount code is simple, well tested
> and sufficient enough. If a distro-style intramfs is needed, klibc is
> not usable (see above). The big distros will very unlikely ever pick
> it up. The the remaining use-cases will stay a niche, that, I think,
> does not justify the kernel inclusion of klibc.
>
> If the whole klibc approach, if not entirely rethought, I doubt it
> will ever go anywhere. In my opinion, with all what I've seen the last
> years, we either work on a full libc in the kernel tree, that can be
> used by normal userspace too, or we leave the tiny stuff to busybox
> and one of the existing tiny libcs.
>
> Kay
next prev parent reply other threads:[~2011-12-18 8:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1323940396.16032.2.camel@raz>
[not found] ` <4EEA0C05.4030907@zytor.com>
2011-12-15 15:19 ` Subject:[PATCH 1:1] boot paramer "root=" gets a list of devices Raz Ben Yehuda
2011-12-15 15:22 ` H. Peter Anvin
2011-12-15 18:11 ` Kay Sievers
2011-12-18 8:54 ` Raz Ben Yehuda [this message]
2012-01-04 17:48 ` Will Drewry
2011-12-15 9:17 Raz Ben Yehuda
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1324198486.4924.3.camel@raz \
--to=rbenyehuda@manz.com \
--cc=LBrafman@manz.com \
--cc=RSlutsker@manz.com \
--cc=hpa@zytor.com \
--cc=kay.sievers@vrfy.org \
--cc=linux-kernel@vger.kernel.org \
--cc=wad@chromium.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox