Gentoo Archives: gentoo-dev

From: Rich Freeman <rich0@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: Questions about SystemD and OpenRC
Date: Sun, 12 Aug 2012 12:27:53
Message-Id: CAGfcS_nadJGs9_y=p0cJ6uJs5_zD7N2dyh6PxZQr8=yNFKLhUg@mail.gmail.com
In Reply to: [gentoo-dev] Re: Questions about SystemD and OpenRC by Duncan <1i5t5.duncan@cox.net>
1 On Sun, Aug 12, 2012 at 5:43 AM, Duncan <1i5t5.duncan@×××.net> wrote:
2 > Peter Stuge posted on Sun, 12 Aug 2012 02:12:38 +0200 as excerpted:
3 >>
4 >> What software parses the filesystem labels when you boot with openrc?
5 >>
6 >> (I ask because I never use labels myself.)
7 >
8 > Short answer, mount and udev, and the kernel directly when fed that
9 > information for root= on the kernel commandline.
10 >...
11 > It'a also worth noting that the kernel's root= line can take a number of
12 > these (I'm not sure if it can take them all), including partlabel,
13 > according to information someone posted on the btrfs list
14
15 I'm pretty sure that this particular part of your post is incorrect,
16 but I'd be happy to be corrected.
17
18 The kernel cannot interpret a root= parameter that doesn't reference a
19 device node that it can't internally generate (with a devtmpfs/etc).
20 I'm pretty sure that rules out just about anything but a physical
21 device (not even /dev/by-uuid/...).
22
23 I think that people get this confused because 99% of linux users have
24 an initramfs (and about 2% of Gentoo users it seems), and most
25 initramfs implementations DO interpret the root=parameter. If you
26 specify an initramfs then the kernel actually ignores the
27 root=parameter entirely, mounting the initramfs as root, and passing
28 control to its init. The initramfs is expected to mount root (or not
29 - you could just run the whole system off an initramfs I guess). Most
30 initramfs implementations just parse the root= line on the kernel,
31 although it is worth noting that genkernel's initramfs does not and
32 uses real_root instead.
33
34 So, I could see how many linux users might think that interpreting a
35 complex root= parameter is a kernel function, when it is really just
36 the fact that they use an initramfs.
37
38 If somebody is running with root=LABEL=foo or something like that
39 without an initramfs I'll happily stand corrected.
40
41 Rich

Replies

Subject Author
Re: [gentoo-dev] Re: Questions about SystemD and OpenRC "vivo75@×××××.com" <vivo75@×××××.com>
Re: [gentoo-dev] Re: Questions about SystemD and OpenRC "Chí-Thanh Christopher Nguyễn" <chithanh@g.o>
Re: [gentoo-dev] Re: Questions about SystemD and OpenRC Mike Gilbert <floppym@g.o>