Bug 1655304 - Dracut includes kvmgt.ko in the initrd but not its dependencies
Summary: Dracut includes kvmgt.ko in the initrd but not its dependencies
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dracut
Version: 29
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: dracut-maint-list
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-12-02 15:21 UTC by Hans de Goede
Modified: 2018-12-10 23:19 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1657028 (view as bug list)
Environment:
Last Closed: 2018-12-10 23:19:57 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Hans de Goede 2018-12-02 15:21:00 UTC
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:

[    5.395162] kvmgt: Unknown symbol gfn_to_memslot (err -2)
[    5.395184] kvmgt: Unknown symbol vfio_pin_pages (err -2)
[    5.395196] kvmgt: Unknown symbol vfio_info_cap_shift (err -2)
[    5.395208] kvmgt: Unknown symbol vfio_set_irqs_validate_and_prepare (err -2)
[    5.395220] kvmgt: Unknown symbol vfio_device_put (err -2)
[    5.395228] kvmgt: Unknown symbol gfn_to_pfn (err -2)
[    5.395238] kvmgt: Unknown symbol mdev_from_dev (err -2)
[    5.395254] kvmgt: Unknown symbol kvm_put_kvm (err -2)
[    5.395266] kvmgt: Unknown symbol kvm_write_guest (err -2)
etc.

Since this is a softdep this does not really cause much of a problem, but I expect this to actually be an issue if a user actually want to use the hw virt support of their Intel GPU.

It looks to me as if dracut does not include the deps of softdeps ?

Note as a workaround the errors can be silenced by using --omit-drivers kvmgt.

Comment 1 Hans de Goede 2018-12-03 15:31:34 UTC
Upstream bug for this:

https://github.com/dracutdevs/dracut/issues/491

Comment 3 Fedora Update System 2018-12-04 10:40:31 UTC
dracut-049-25.git20181204.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-1f0c069e85

Comment 4 Fedora Update System 2018-12-05 03:54:04 UTC
dracut-049-25.git20181204.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-1f0c069e85

Comment 5 Randy Barlow 2018-12-10 23:19:57 UTC
An update associated with this bug has been pushed to stable.


Note You need to log in before you can comment on or make changes to this bug.