Bug 769882

Summary: dracut builds initramfs that looks for wrong VG name
Product: [Fedora] Fedora Reporter: Jeff Layton <jlayton>
Component: dracutAssignee: dracut-maint
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: rawhideCC: dracut-maint, harald, jonathan, steved
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-23 10:28:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
/boot/grub2/grub.cfg none

Description Jeff Layton 2011-12-22 15:56:22 UTC
With the recent update of dracut in rawhide to 014-9.git20111215.fc17, the initramfs it builds does not allow the machine to boot. It seems to be transposing the name of the root LV for the name of the VG:

[    3.072689] modprobe used greatest stack depth: 3648 bytes left
[    3.547570] dracut: Scanning devices vda2  for LVM logical volumes lv_root
[    3.582454] dracut: inactive '/dev/vg_rawhide/lv_root' [35.62 GiB] inherit
[    3.586701] dracut: inactive '/dev/vg_rawhide/lv_swap' [1.94 GiB] inherit
[    3.643961] dracut: Volume group "lv_root" not found
[    3.647001] dracut: Skipping volume group lv_root
[   16.986821] dracut: Scanning devices vda2  for LVM logical volumes lv_root
[   17.025835] dracut: inactive '/dev/vg_rawhide/lv_root' [35.62 GiB] inherit
[   17.027535] dracut: inactive '/dev/vg_rawhide/lv_swap' [1.94 GiB] inherit
[   17.053412] dracut: Partial mode. Incomplete logical volumes will be processed.
[   17.084211] dracut: Volume group "lv_root" not found
[   17.092789] dracut: Skipping volume group lv_root
[   41.286959] dracut Warning: No root device "block:/dev/mapper/vg_rawhide-lv_root" found


dracut Warning: No root device "block:/dev/mapper/vg_rawhide-lv_root" found


dracut Warning: No root device "block:/dev/mapper/vg_rawhide-lv_root" found
[   41.309628] dracut Warning: "/dev/lv_root" does not exist
dracut Warning: "/dev/lv_root" does not exist
[   41.313318] dracut Warning: "/dev/mapper/vg_rawhide-lv_root" does not exist
dracut Warning: "/dev/mapper/vg_rawhide-lv_root" does not exist

Dropping to debug shell.

sh: 0: can't access tty; job control turned off
dracut:/# 

...it should be looking for a volume group called vg_rawhide instead of one called lv_root. Downgrading to the older dracut and rebuilding the initramfs seems to resolve the problem for me for now.

Comment 1 Harald Hoyer 2012-01-05 09:44:45 UTC
can you please show me your kernel command line?

Comment 2 Jeff Layton 2012-01-05 12:06:57 UTC
# cat /proc/cmdline 
BOOT_IMAGE=/vmlinuz-3.2.0-0.rc7.git4.1.fc17.x86_64 root=/dev/mapper/vg_rawhide-lv_root ro console=ttyS0,115200 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 KEYTABLE=us

Comment 3 Harald Hoyer 2012-01-05 12:57:48 UTC
can you show me your grub.conf?

Comment 4 Jeff Layton 2012-01-05 13:26:22 UTC
Created attachment 550902 [details]
/boot/grub2/grub.cfg

I presume this is what you want (and not the grub1 grub.conf)

Comment 5 Harald Hoyer 2012-01-23 10:28:07 UTC
Should be fixed now. If not, please reopen.

Comment 6 Jeff Layton 2012-01-23 11:42:38 UTC
Confirmed -- seems to be fixed in dracut-014-38.git20120117.fc17.noarch.