1 |
Hi Alex, |
2 |
|
3 |
Alex Schuster wrote: |
4 |
|
5 |
> Dale writes: |
6 |
> |
7 |
>> Alan McKinnon wrote: |
8 |
>>> Apparently, though unproven, at 15:18 on Tuesday 04 January 2011, |
9 |
>>> Stroller did opine thusly: |
10 |
>>> |
11 |
>>>> I found numerous references to this syntax going back to 2005 or |
12 |
>>>> so, and some major distros seem to use it as the default way of |
13 |
>>>> describing "root=" to the kernel. |
14 |
>>>> |
15 |
>>>> http://www.linuxforums.org/forum/redhat-fedora-linux-help/23010-root- |
16 |
label- |
17 |
>>>> grub-conf.html |
18 |
>>>> http://linux.derkeiler.com/Mailing-Lists/RedHat/2005-01/0026.html |
19 |
>>>> |
20 |
>>>> However: |
21 |
>>>> http://old.nabble.com/Re%3A-Using--%22root%3DLABEL%3Dxxxx%22-in- |
22 |
grub.conf-p |
23 |
>>>> 21909347.html http://tinyurl.com/2u4srg4 |
24 |
>>>> |
25 |
>>>> Stroller. |
26 |
>>> |
27 |
>>> All the major distros I've seen it on also use initrds though (rare in |
28 |
>>> gentoo- land). I have no idea how it all works, I just know how to type |
29 |
>>> it on a RHEL box. |
30 |
> |
31 |
> I am using an initrd, I need it since my root partition is encrypted. |
32 |
> It's generated and copied to /boot with 'genkernel --install --luks |
33 |
> --lvm all', but you have to have CLEAN="no" in /etc/genkernel.conf or |
34 |
> genkernel will create its own .config. |
35 |
> |
36 |
>>> Elsewhere in the thread someone mentioned that this syntax relies on an |
37 |
>>> initrd, and I suspect he may be correct. |
38 |
> |
39 |
> And Stroller's 3rd link also does this. |
40 |
> |
41 |
>> I tried using labels with the old grub a while back and it didn't work. |
42 |
>> Labels in fstab works fine tho. We may have to wait on the new grub to |
43 |
>> get finished |
44 |
> |
45 |
> I would be surprised if it had this feature. AFAIK grub is already done |
46 |
> at this stage, the kernel has taken over. And I guess it does not know |
47 |
> about the LABEL= syntax, and has no code to scan all devices for file |
48 |
> system labels. |
49 |
|
50 |
I fear so, too. Grub finds the boot device properly, it's the kernel |
51 |
complaining about the value in the root option. |
52 |
|
53 |
> With an initramfs, the kernel runs an init script which can do various |
54 |
> stuff, like probing all devices for file system labels. |
55 |
|
56 |
I never had the need for an initrd. |
57 |
|
58 |
- Jörg |