Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 422997

Summary: sys-kernel/dracut-019 doesn't add lvm files in hostmode
Product: Gentoo Linux Reporter: Alexander Vershilov (RETIRED) <qnikst>
Component: [OLD] Core systemAssignee: Amadeusz Żołnowski (RETIRED) <aidecoe>
Status: RESOLVED WORKSFORME    
Severity: normal CC: nikoli
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: dracut log
lsinitrd for hostonly mode

Description Alexander Vershilov (RETIRED) gentoo-dev 2012-06-22 17:46:07 UTC
sys-kernel/dracut-019 doesn't add lvm scripts in hostmode

Reproducible: Always

Steps to Reproduce:
1. dracut -f -L=6  --fstab -a 'lvm' '/var/tmp/image' '3.4.3-gentoo' 

Actual Results:  
sysresccd / # lsinitrd /var/tmp/image | grep lvm
sysresccd / # 

Expected Results:  
sysresccd / # dracut -f -L=6  --fstab -a 'lvm' '/var/tmp/image2' '3.4.3-gentoo' &> log
sysresccd / # lsinitrd /var/tmp/image2 | grep lvm
drwxr-xr-x   2 root     root            0 Jun 22 17:52 etc/lvm
-rw-r--r--   1 root     root        34463 Jun 22 17:52 etc/lvm/lvm.conf
...
Comment 1 Alexander Vershilov (RETIRED) gentoo-dev 2012-06-22 17:49:33 UTC
Created attachment 315985 [details]
dracut log
Comment 2 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-06-24 05:44:31 UTC
Please post the result of lsinitrd, too.  As far as I see in your log, dracut installs lvm and actually it is not hostonly mode, but generic.  You haven't specified -H/--hostonly.
Comment 3 Alexander Vershilov (RETIRED) gentoo-dev 2012-06-24 18:44:06 UTC
Created attachment 316179 [details]
lsinitrd for hostonly mode

dracut -f -L=3 -M -H -m 'dash i18n kernel-modules resume rootfs-block terminfo udev-rules base' -a 'lvm' '/var/tmp/image' '3.4.3-gentoo'
Comment 4 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-06-24 19:11:55 UTC
I see that LVM is included:

I: *** Including module: lvm ***
D: Installing /lib64/libreadline.so.6.2
D: Installing /lib64/libncurses.so.5.9
D: Installing /sbin/lvm
D: Installing /usr/lib/dracut/modules.d/90lvm/64-lvm.rules
D: Installing /etc/lvm/lvm.conf
D: Installing /lib/udev/rules.d/11-dm-lvm.rules
Comment 5 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-07-25 11:55:50 UTC
I don't see the described problem in attached logs.