Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 409823 - sys-kernel/dracut-017-r1 tries to run a non-existent file during boot
Summary: sys-kernel/dracut-017-r1 tries to run a non-existent file during boot
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Amadeusz Żołnowski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-27 06:04 UTC by David
Modified: 2012-03-30 08:03 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge-info.txt,4.55 KB, text/plain)
2012-03-27 06:04 UTC, David
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David 2012-03-27 06:04:41 UTC
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'
Comment 1 Michael Edenfield 2012-03-27 14:10:38 UTC
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.
Comment 2 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-03-28 08:57:00 UTC
Please try dracut-017-r3.
Comment 3 David 2012-03-29 02:40:31 UTC
(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).
Comment 4 David 2012-03-29 03:09:21 UTC
(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
Comment 5 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-03-29 06:04:19 UTC
Please append rd.debug to kernel command line and attach /run/initramfs/init.log.
Comment 6 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-03-30 08:03:38 UTC
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.