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