Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 623738 - sys-kernel/dracut-045 fails to find [systemd-]udevd binary and makes system unbootable
Summary: sys-kernel/dracut-045 fails to find [systemd-]udevd binary and makes system u...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-03 20:35 UTC by Vadim Dyadkin
Modified: 2017-07-04 15:32 UTC (History)
5 users (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 Vadim Dyadkin 2017-07-03 20:35:19 UTC
New dracut-045 fail with this message:
> dracut --no-compress --force --hostonly --add-drivers "hid-apple" '' 4.12.0-gentoo

dracut: Executing: /usr/bin/dracut --no-compress --force --hostonly --add-drivers hid-apple  4.12.0-gentoo
dracut: dracut module 'bootchart' will not be installed, because command '/sbin/bootchartd' could not be found!
dracut: dracut module 'dash' will not be installed, because command '/bin/dash' could not be found!
dracut: dracut module 'systemd' will not be installed, because command '/usr/lib/systemd/systemd' could not be found!
dracut: dracut module 'systemd-bootchart' will not be installed, because command '/usr/lib/systemd/systemd-bootchart' could not be found!
dracut: systemd-initrd needs systemd in the initramfs
dracut: systemd-networkd needs systemd in the initramfs
dracut: dracut module 'plymouth' will not be installed, because command 'plymouthd' could not be found!
dracut: dracut module 'plymouth' will not be installed, because command 'plymouth' could not be found!
dracut: dracut module 'plymouth' will not be installed, because command 'plymouth-set-default-theme' could not be found!
dracut: dracut module 'btrfs' will not be installed, because command 'btrfs' could not be found!
dracut: dracut module 'dmraid' will not be installed, because command 'dmraid' could not be found!
dracut: dracut module 'mdraid' will not be installed, because command 'mdadm' could not be found!
dracut: dracut module 'multipath' will not be installed, because command 'multipath' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsistart' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
dracut: dracut module 'biosdevname' will not be installed, because command 'biosdevname' could not be found!
dracut: dracut-systemd needs systemd-initrd in the initramfs
dracut: dracut module 'dash' will not be installed, because command '/bin/dash' could not be found!
dracut: dracut module 'btrfs' will not be installed, because command 'btrfs' could not be found!
dracut: dracut module 'dmraid' will not be installed, because command 'dmraid' could not be found!
dracut: dracut module 'mdraid' will not be installed, because command 'mdadm' could not be found!
dracut: dracut module 'multipath' will not be installed, because command 'multipath' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsistart' could not be found!
dracut: dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
dracut: *** Including module: bash ***
dracut: *** Including module: i18n ***
dracut: i18n_vars not set!  Please set up i18n_vars in  configuration file.
dracut: No KEYMAP configured.
dracut: *** Including module: crypt ***
dracut: *** Including module: dm ***
dracut: Skipping udev rule: 64-device-mapper.rules
dracut: Skipping udev rule: 60-persistent-storage-dm.rules
dracut: Skipping udev rule: 55-dm.rules
dracut: *** Including module: kernel-modules ***
dracut: *** Including module: rootfs-block ***
dracut: *** Including module: terminfo ***
dracut: *** Including module: udev-rules ***
dracut: Cannot find [systemd-]udevd binary!

And then it does not create /boot/initramfs.cpio, which is not included into the freshly compiled kernel (I use EFI-stub) and the system becomes unbootable. Rolling back to dracut-044-r3 solves the problem.
Comment 1 Tamas Jantvik 2017-07-04 11:53:15 UTC
I stumbled upon the same problem:

dracut: Executing: /usr/bin/dracut -m "base crypt fs-lib kernel-modules resume rootfs-block shutdown uvesafb zfs" --kver 4.11.0-pf7-20170704_1 --force -i /root/rd.overlay/ / --no-early-microcode --lzma
dracut: *** Including module: uvesafb ***
dracut: *** Including module: crypt ***
dracut: *** Including module: dm ***
dracut: Skipping udev rule: 64-device-mapper.rules
dracut: Skipping udev rule: 60-persistent-storage-dm.rules
dracut: Skipping udev rule: 55-dm.rules
dracut: *** Including module: kernel-modules ***
dracut: *** Including module: zfs ***
dracut: *** Including module: resume ***
dracut: *** Including module: rootfs-block ***
dracut: *** Including module: udev-rules ***
dracut: Cannot find [systemd-]udevd binary!

Which then results in not generating the initrd. Reverting to 044-r3 restores functionality.
Comment 2 Jonas Stein gentoo-dev 2017-07-04 14:31:51 UTC
Confirmed by Tamas Jantvik.
Comment 3 Mike Gilbert gentoo-dev 2017-07-04 14:53:38 UTC
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=785b9ef776a8106029579209bbd8d6d2a0862ae7

commit 785b9ef776a8106029579209bbd8d6d2a0862ae7
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Mon Jul 3 22:52:18 2017 -0400

    sys-kernel/dracut: better fix for systemdutildir
    
    Package-Manager: Portage-2.3.6_p9, Repoman-2.3.2_p77

 .../{dracut-045-r1.ebuild => dracut-045-r2.ebuild} |  7 +---
 sys-kernel/dracut/files/045-systemdutildir.patch   | 45 ++++++++++++++++++++++
 2 files changed, 47 insertions(+), 5 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07d29c7357f4f569260019158959bef27cb97a63

commit 07d29c7357f4f569260019158959bef27cb97a63
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Mon Jul 3 20:35:59 2017 -0400

    sys-kernel/dracut: override systemdutildir
    
    When sys-fs/udev is installed, dracut's built-in logic fails.
    
    Package-Manager: Portage-2.3.6_p9, Repoman-2.3.2_p77

 sys-kernel/dracut/{dracut-045.ebuild => dracut-045-r1.ebuild} | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
Comment 4 Vadim Dyadkin 2017-07-04 15:32:50 UTC
Thanks, Mike, it works now.