Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 410481 - sys-kernel/dracut-017-r3 - booting with initialramfs fails
Summary: sys-kernel/dracut-017-r3 - booting with initialramfs fails
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Amadeusz Żołnowski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-01 22:43 UTC by Juergen Rose
Modified: 2012-06-05 14:28 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2012-04-01 22:43:20 UTC
Besides the problems, described at https://bugs.gentoo.org/show_bug.cgi?id=408971. I tried to boot a third system with an initialramfs created by dracut. I tried to follow the documentation at http://wiki.gentoo.org/wiki/Dracut.

root # mount /boot
root # RootCmd
root # dracut

Wath is RootCmd?

I created the ramdisk with:
root@condor:/root(32)# dracut --hostonly
I: *** Including module: dash ***
I: *** Including module: caps ***
I: *** Including module: i18n ***
I: *** Including module: dm ***
I: Skipping udev rule: 64-device-mapper.rules
I: *** Including module: kernel-modules ***
I: *** Including module: lvm ***
I: Skipping udev rule: 64-device-mapper.rules
I: *** Including module: mdraid ***
I: *** Including module: resume ***
I: *** Including module: rootfs-block ***
I: *** Including module: terminfo ***
I: *** Including module: udev-rules ***
I: Skipping udev rule: 50-udev.rules
I: Skipping udev rule: 95-late.rules
I: *** Including module: usrmount ***
I: *** Including module: base ***
I: *** Including module: fs-lib ***
I: *** Including module: shutdown ***
I: Skipping program kexec as it cannot be found and is flagged to be optional
I: *** Including modules done ***
I: Wrote /boot/initramfs-3.3.0.img:
I: -rw-r--r-- 1 root root 4717462 Apr  1 09:36 /boot/initramfs-3.3.0.img

root@condor:/root(38)# df
Filesystem                1K-blocks      Used Available Use% Mounted on
rootfs                      1976400   1162280    713720  62% /
/dev/root                   1976400   1162280    713720  62% /
...

root@condor:/root(39)# ll /dev/root 
lrwxrwxrwx 1 root root 5 Mar 20 17:06 /dev/root -> md125


root@condor:/root(41)# ls -alF /dev/disk/by-id | grep md125
lrwxrwxrwx 1 root root   11 Mar 20 17:06 md-uuid-1730efc3:7ef1cf49:0bf89354:250287e3 -> ../../md125


root@condor:/root(12)# grep -u3 initramfs-3.3.0.img /boot/grub/grub.conf
title=Gentoo 3.3.0_vfb_nvbm_dvb_without_initramfs  k-hd0_r-md125 with dracut initramfs r(hd0,2)
root (hd0,2)
kernel (hd0,0)/vmlinuz-3.3.0_vfb_nvbm_dv_without_initramfs root=/dev/md125 acpi_sleep=s3_bios
initrd (hd0,0)/initramfs-3.3.0.img

title=Gentoo 3.3.0_vfb_nvbm_dvb_without_initramfs  k-hd0_r-md125 with dracut initramfs r(hd0,0)
root (hd0,0)
kernel (hd0,0)/vmlinuz-3.3.0_vfb_nvbm_dv_without_initramfs root=/dev/md125 acpi_sleep=s3_bios
initrd (hd0,0)/initramfs-3.3.0.img

Booting with root=/dev/md125 failed with:


3.3.0_vfb_nvbm_dvb_without_initramfs k-hd0_r-md125 with dracut initramfs r(hd0,2)
	   [...] dracut: Scanning devices md5 for LVM logical volumes vg1/usr
		 ...
		 [...] dracut: ACTIVE '/dev/vg1/usr' [128.00 GiB] inherit
		 ...
		 [...] dracut: inactive '/dev/vg1/src' [61.43 GiB] inherit
		 [...] dracut: Partial mode. Incomplete logical volumes will be processed.
		 [...] dracut Warning: Unable to process initqueue
		  dracut Warning: Unable to process initqueue
		 [...] dracut Warning: /dev/md125 does not exist
		  dracut Warning: /dev/md125 does not exist

		 Dropping to debug shell.

If I tried to boot with the id provided by 'ls -alF /dev/disk/by-id' as decribed at http://wiki.gentoo.org/wiki/Dracut
root@condor:/root(41)# ls -alF /dev/disk/by-id | grep md125
lrwxrwxrwx 1 root root   11 Mar 20 17:06 md-uuid-1730efc3:7ef1cf49:0bf89354:250287e3 -> ../../md125

it fails either with something like can't find root device 
/dev/disk/by-uuid/1730efc3:7ef1cf49:0bf89354:250287e3

So I searched /dev/disk/by-uuid/:

root@condor:/root(4)# ls -alF /dev/disk/by-uuid/
total 0
drwxr-xr-x 2 root root 180 Apr  1 22:02 ./
drwxr-xr-x 5 root root 100 Apr  1 22:02 ../
lrwxrwxrwx 1 root root  10 Apr  1 22:02 215fa0ca-fa99-45c5-89be-ec41c11b190a -> ../../sda5
lrwxrwxrwx 1 root root  11 Apr  1 22:02 3ba91054-b860-4fdc-b935-80dcbada1514 -> ../../md124
lrwxrwxrwx 1 root root  10 Apr  1 22:02 42974f74-88bc-45f8-b7e2-7fbf05cbf33c -> ../../sda2
lrwxrwxrwx 1 root root  11 Apr  1 22:02 835386c4-13b8-4a28-b04c-20266470b101 -> ../../md127
lrwxrwxrwx 1 root root  10 Apr  1 22:02 9ee55c2d-855f-4f92-8f9b-a8183048f964 -> ../../sdb2
lrwxrwxrwx 1 root root  10 Apr  1 22:02 b894f527-7c6b-4acf-aca8-a128542663bc -> ../../sdb5
lrwxrwxrwx 1 root root  11 Apr  1 22:02 da1664df-139b-4f90-9ddd-e01cbc55ea2b -> ../../md125
root@condor:/root(5)# df
Filesystem                1K-blocks      Used Available Use% Mounted on
rootfs                      1976400    694968   1181032  38% /
udev                          10240         4     10236   1% /dev
/dev/md125                  1976400    694968   1181032  38% /

and used:


title=Gentoo 3.3.0_vfb_nvbm_dvb_without_initramfs  k-hd0_r-UID=3ba91054 with dracut initramfs r(hd0,0)
root (hd0,0)
kernel (hd0,0)/vmlinuz-3.3.0_vfb_nvbm_dvb_without_initramfs root=UUID=3ba91054-b860-4fdc-b935-80dcbada1514
initrd (hd0,0)/initramfs-3.3.0.img

as grub entry. Now booting failed with:


	   [...] dracut: Scanning devices md5 for LVM logical volumes vg1/usr
		 [...] dracut:inactive '/dev/vg1/usr' [128.00 GiB] inherit
		 ...
		 [...] mdadm: sending ioctl 1261 to a partion!
		 ...
		 [...] dracut: Checking ext2: /dev/disk/by-uuid/3ba91054-b860-4fdc-b935-80dcbada1514
		 [...] 
		 [...] mdadm: sending ioctl 1261 to a partion!
		 ...
		 [...] dracut: Remounting /dev/disk/by-uuid/3ba91054-b860-4fdc-b935-80dcbada1514 with -o ro
		 [...] dracut: Warning: /sysroot has no proper rootfs layout, ignoring and removing offending mount hook
		  Warning: /sysroot has no proper rootfs layout, ignoring and removing offending mount hook
		 [...] dracut Warning: Can't mount root filesystem
		  dracut Warning: Can't mount root filesystem
			
			Dropping to debug shell

			sh: cannot set terminal process group (-1): Inappropriate ioctl for device
			sh: no job control in this shell


root=UUID=1730efc3:7ef1cf49:0bf89354:250287e3

Reproducible: Always
Comment 1 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-04-17 09:45:23 UTC
You want /dev/md125 not /dev/md124, yes? So why you're using md124 UUID and not md125? Please try root=UUID=da1664df-139b-4f90-9ddd-e01cbc55ea2b instead (in kernel command line args).
Comment 2 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-06-05 14:28:34 UTC
No answer and doesn't seem to be a bug, but reopen if it is, please.