1 |
On 24.04.2015 13:56, J. Roeleveld wrote: |
2 |
|
3 |
>> dracut has to assemble /dev/md3 at first (this is the single PV in the |
4 |
>> VG VG01) |
5 |
>> |
6 |
>> and /dev/VG01/genroot then is the filesystem with the new gentoo-rootfs |
7 |
>> |
8 |
>> I only added stuff like rd.md=1 etc ... I think I got the assembling |
9 |
>> wrong. And maybe even the root= option. |
10 |
> |
11 |
> This is one of the reasons why I have given up on genkernel and dracut for |
12 |
> initramfs creation and now simply build my own and have it integrated into the |
13 |
> kernel: |
14 |
> $ zcat /proc/config.gz | grep INITRAMFS_SOURCE |
15 |
> CONFIG_INITRAMFS_SOURCE="/usr/src/initramfs/config" |
16 |
> |
17 |
> If you're interested I will send you the required files. |
18 |
|
19 |
Yes, I am. |
20 |
|
21 |
I looked at generating it via dracut and get confused a bit. |
22 |
|
23 |
I try to generate it on another gentoo-host by editing a specific |
24 |
dracut.conf whic contains the md-related lines: |
25 |
|
26 |
kernel_cmdline+=" rd.md.uuid=6a6226ed:87d41201:76269125:1a17f6a4" |
27 |
kernel_cmdline+=" rd.md.uuid=2d6cd278:5f966c0f:ac5ed5c3:5a0bb8f5" |
28 |
kernel_cmdline+=" rd.md.uuid=b492f31d:96bfca88:8cd97590:ad997d2c" |
29 |
kernel_cmdline+=" rd.md.uuid=e848b637:ca2bde73:9f92f3cc:128cdbad" |
30 |
|
31 |
(to assemble the raid-arrays at boot) |
32 |
|
33 |
|
34 |
I run |
35 |
|
36 |
dracut -m "lvm mdraid bash" -c dracut.conf -f init2.img 3.18.9-gentoo |
37 |
|
38 |
|
39 |
and it ends with: |
40 |
|
41 |
*** Store current command line parameters *** |
42 |
Stored kernel commandline: |
43 |
rd.md.uuid=6a6226ed:87d41201:76269125:1a17f6a4 |
44 |
rd.md.uuid=2d6cd278:5f966c0f:ac5ed5c3:5a0bb8f5 |
45 |
rd.md.uuid=b492f31d:96bfca88:8cd97590:ad997d2c |
46 |
rd.md.uuid=e848b637:ca2bde73:9f92f3cc:128cdbad |
47 |
root=UUID=6eafd21c-c5f4-496d-bb90-ab4dc0a2c93c |
48 |
rootflags=rw,noatime,stripe=64,data=ordered rootfstype=ext4 |
49 |
*** Creating image file *** |
50 |
*** Creating image file done *** |
51 |
|
52 |
|
53 |
... so the root= is looked up from the host I run the command on and |
54 |
not fitting the target machine ... etc etc |
55 |
|
56 |
hmm |
57 |
|
58 |
Does root= inside the grub-config override these lines? |
59 |
|
60 |
Should I use |
61 |
|
62 |
dracut --no-hostonly-cmdline ? |
63 |
|
64 |
Way too much variables in here ... especially when I can't just press |
65 |
Reset and try again. |
66 |
|
67 |
Stefan |