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 |