Created attachment 579170 [details, diff] install/dracut-install.c: install module dependencies of dependencies After upgrading to the latest stable version of dracut, I rebuild my initramfs and booted the stable kernel 4.19.44-gentoo, but the following messages appeared in dmesg: [ 5.896246] kvmgt: Unknown symbol gfn_to_memslot (err -2) [ 5.896253] kvmgt: Unknown symbol vfio_pin_pages (err -2) [ 5.896258] kvmgt: Unknown symbol vfio_info_cap_shift (err -2) [ 5.896262] kvmgt: Unknown symbol vfio_set_irqs_validate_and_prepare (err -2) [ 5.896265] kvmgt: Unknown symbol vfio_device_put (err -2) [ 5.896267] kvmgt: Unknown symbol gfn_to_pfn (err -2) [ 5.896271] kvmgt: Unknown symbol mdev_from_dev (err -2) [ 5.896276] kvmgt: Unknown symbol kvm_put_kvm (err -2) [ 5.896280] kvmgt: Unknown symbol kvm_write_guest (err -2) [ 5.896284] kvmgt: Unknown symbol kvm_slot_page_track_remove_page (err -2) [ 5.896288] kvmgt: Unknown symbol kvm_page_track_register_notifier (err -2) [ 5.896292] kvmgt: Unknown symbol mdev_parent_dev (err -2) [ 5.896296] kvmgt: Unknown symbol vfio_unpin_pages (err -2) [ 5.896302] kvmgt: Unknown symbol kvm_is_visible_gfn (err -2) [ 5.896304] kvmgt: Unknown symbol kvm_page_track_unregister_notifier (err -2) [ 5.896308] kvmgt: Unknown symbol vfio_device_get_from_dev (err -2) [ 5.896311] kvmgt: Unknown symbol kvm_slot_page_track_add_page (err -2) [ 5.896317] kvmgt: Unknown symbol vfio_register_notifier (err -2) [ 5.896319] kvmgt: Unknown symbol vfio_info_add_capability (err -2) [ 5.896321] kvmgt: Unknown symbol mdev_get_drvdata (err -2) [ 5.896325] kvmgt: Unknown symbol mdev_register_device (err -2) [ 5.896329] kvmgt: Unknown symbol mdev_dev (err -2) [ 5.896331] kvmgt: Unknown symbol mdev_unregister_device (err -2) [ 5.896335] kvmgt: Unknown symbol vfio_unregister_notifier (err -2) [ 5.896337] kvmgt: Unknown symbol kvm_read_guest (err -2) [ 5.896340] kvmgt: Unknown symbol mdev_set_drvdata (err -2) [ 5.896343] kvmgt: Unknown symbol kvm_get_kvm (err -2) From the Fedora bugzilla report (referred from the upstream bug): Starting with kernel 4.19, i915.ko has: [root@localhost ~]# modinfo i915 | grep pre\: softdep: pre: kvmgt dracut correctly picks this up, including kvmgt.ko in the initrd (checked with lsinitrd). But kvmgt.ko has: [root@localhost ~]# modinfo kvmgt | grep dep depends: vfio,mdev,kvm And dracut does not include any of these kernel modules into the initrd, causing these errors in dmesg. The bug was fixed upstream with the attached patch.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=980830b7e4a2953550338f13dd8525bcad28d8fc commit 980830b7e4a2953550338f13dd8525bcad28d8fc Author: Alexander Tsoy <alexander@tsoy.me> AuthorDate: 2019-12-26 14:26:15 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2019-12-29 19:36:23 +0000 sys-kernel/dracut: Add a bunch of upstream patches * fix dracut-install crashes * install kernel module dependencies of dependencies * add support for compressed firmware files * add support for rngd service * bash-5 compatibility * add fts-standalone dependency and configure check for musl * fix udevdir detection Closes: https://bugs.gentoo.org/676268 Closes: https://bugs.gentoo.org/677788 Closes: https://bugs.gentoo.org/687602 Bug: https://bugs.gentoo.org/703438 Signed-off-by: Alexander Tsoy <alexander@tsoy.me> Signed-off-by: Mike Gilbert <floppym@gentoo.org> sys-kernel/dracut/dracut-049-r3.ebuild | 176 +++++++++++++++++++++ ...gure-find-cflags-and-libs-for-fts-on-musl.patch | 97 ++++++++++++ ...t-create-locking-directory-run-cryptsetup.patch | 32 ++++ ...all-Support-the-compressed-firmware-files.patch | 63 ++++++++ .../049-dracut.sh-Fix-udevdir-detection.patch | 38 +++++ .../dracut/files/049-fs-lib-drop-a-bashism.patch | 99 ++++++++++++ ...cut-install.c-install-module-dependencies.patch | 79 +++++++++ ...ing_hash_func-should-not-be-fed-with-NULL.patch | 38 +++++ ...g-the-systemdutildir-variable-before-it-s.patch | 55 +++++++ ...ager-call-the-online-hook-for-connected-d.patch | 32 ++++ ...ager-fix-getting-of-ifname-from-the-sysfs.patch | 37 +++++ ...rk-manager-remove-useless-use-of-basename.patch | 26 +++ ...dule-running-early-during-boot-to-help-ge.patch | 88 +++++++++++ 13 files changed, 860 insertions(+)