]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(drm): add video drivers needed on hyper-v and similar
authorLukas Nykryn <lnykryn@redhat.com>
Mon, 15 Aug 2022 14:32:51 +0000 (16:32 +0200)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Mon, 15 Aug 2022 15:34:06 +0000 (15:34 +0000)
Due to non-availability of Hyper-V video driver hyperv_drm in kdump
initramfs, the console seems to be in hang state with no text over it.

We should also go through the /sys/bus/vmbus/devices and include drivers
referenced there.

modules.d/50drm/module-setup.sh

index cff0550c98fd678c7926e6ecb688edcfbef1b7b6..1fb386778c806a29589b9f28b64b49e6529d88cc 100755 (executable)
@@ -31,7 +31,7 @@ installkernel() {
     if [[ $hostonly ]]; then
         local i modlink modname
 
-        for i in /sys/bus/{pci/devices,platform/devices,virtio/devices,soc/devices/soc?}/*/modalias; do
+        for i in /sys/bus/{pci/devices,platform/devices,virtio/devices,soc/devices/soc?,vmbus/devices}/*/modalias; do
             [[ -e $i ]] || continue
             [[ -n $(< "$i") ]] || continue
             # shellcheck disable=SC2046