Created attachment 306815 [details] emerge --info During boot (right before OpenRC starts), dracut says: dracut: Mounting /dev/VG/usr //lib/dracut/hooks/pre-pivot/00mount-sys.sh: 35: [[: not found dracut: mount: special device /dev/VG/usr does not exist ====== My system's /etc/fstab includes an LVM logical volume (/dev/VG/usr) mounted as /usr So, my dracut command is: dracut --mount "/dev/VG/usr /usr xfs" ====== Within the initramfs created by the above "dracut" command, there is only one file in /lib/dracut/hooks/pre-pivot/ -- the file is: /lib/dracut/hooks/pre-pivot/50mount-usr.sh I could be ignorant, but it seems that if dracut tried looking for '50mount-usr.sh' instead of '00mount-sys.sh' during boot, then /dev/VG/usr would mount fine. ========= # grep dracut /etc/portage/package.use sys-kernel/dracut device-mapper # grep DRACUT /etc/make.conf DRACUT_MODULES="lvm" Attaching output of 'emerge --info'
I don't know if this is documented anywhere, but you need to include the "fstab-sys" dracut module. This is where the mount-sys.sh file comes from. Otherwise, nothing in the initramfs will mount your fstab file, so your --mount options will do nothing.
Please try dracut-017-r3.
(In reply to comment #1) > I don't know if this is documented anywhere, but you need to include the > "fstab-sys" dracut module. This is where the mount-sys.sh file comes from. > Otherwise, nothing in the initramfs will mount your fstab file, so your > --mount options will do nothing. Actually, that module is already automatically included... # dracut --mount "/dev/VG/usr /usr xfs" # grep fstab-sys /var/log/dracut.log I: *** Including module: fstab-sys *** D: Installing /usr/lib/dracut/modules.d/95fstab-sys/mount-sys.sh And though the fstab-sys module provides mount-sys.sh, it does not provide it in the location that dracut actually looks for it (which is /lib/dracut/hooks/pre-pivot/00mount-sys.sh).
(In reply to comment #2) > Please try dracut-017-r3. Now using dracut-017-r3, dracut's message during boot changes to this: dracut: Mounted root filesystem /dev/sda3 dracut: Mounting from /etc/fstab [: 31: Illegal number: device node not found dracut: Mounting /dev/VG/usr dracut: mount: special device /dev/VG/usr does not exist dracut: Switching root
Please append rd.debug to kernel command line and attach /run/initramfs/init.log.
This is actually another bug, which is already reported as bug #410105. Please continue there. I'm closing this as obsolete, because it was fixed before the report.