On 28 April 2015 10:33:32 CEST, "Stefan G. Weichinger" <li...@xunil.at> wrote:
>On 24.04.2015 13:56, J. Roeleveld wrote:
>
>>> dracut has to assemble /dev/md3 at first (this is the single PV in
>the
>>> VG VG01)
>>>
>>> and /dev/VG01/genroot then is the filesystem with the new
>gentoo-rootfs
>>>
>>> I only added stuff like rd.md=1 etc ... I think I got the assembling
>>> wrong. And maybe even the root= option.
>> 
>> This is one of the reasons why I have given up on genkernel and
>dracut for 
>> initramfs creation and now simply build my own and have it integrated
>into the 
>> kernel:
>> $ zcat /proc/config.gz | grep INITRAMFS_SOURCE
>> CONFIG_INITRAMFS_SOURCE="/usr/src/initramfs/config"
>> 
>> If you're interested I will send you the required files.
>
>Yes, I am.
>
>I looked at generating it via dracut and get confused a bit.
>
>I try to generate it on another gentoo-host by editing a specific
>dracut.conf whic contains the md-related lines:
>
>kernel_cmdline+=" rd.md.uuid=6a6226ed:87d41201:76269125:1a17f6a4"
>kernel_cmdline+=" rd.md.uuid=2d6cd278:5f966c0f:ac5ed5c3:5a0bb8f5"
>kernel_cmdline+=" rd.md.uuid=b492f31d:96bfca88:8cd97590:ad997d2c"
>kernel_cmdline+=" rd.md.uuid=e848b637:ca2bde73:9f92f3cc:128cdbad"
>
>(to assemble the raid-arrays at boot)
>
>
>I run
>
>dracut -m "lvm mdraid bash" -c dracut.conf  -f init2.img 3.18.9-gentoo
>
>
>and it ends with:
>
>*** Store current command line parameters ***
>Stored kernel commandline:
> rd.md.uuid=6a6226ed:87d41201:76269125:1a17f6a4
>rd.md.uuid=2d6cd278:5f966c0f:ac5ed5c3:5a0bb8f5
>rd.md.uuid=b492f31d:96bfca88:8cd97590:ad997d2c
>rd.md.uuid=e848b637:ca2bde73:9f92f3cc:128cdbad
> root=UUID=6eafd21c-c5f4-496d-bb90-ab4dc0a2c93c
>rootflags=rw,noatime,stripe=64,data=ordered rootfstype=ext4
>*** Creating image file ***
>*** Creating image file done ***
>
>
>... so the root=  is looked up from the host I run the command on and
>not fitting the target machine ... etc etc
>
>hmm
>
>Does root= inside the grub-config override these lines?
>
>Should I use
>
>dracut --no-hostonly-cmdline ?
>
>Way too much variables in here ...  especially when I can't just press
>Reset and try again.
>
>Stefan

I sent my files on a seperate thread last weekend.
Did you see those?

--
Joost 
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Reply via email to