ad54c5
From 58a310fdbfc1a7e07703c6ab9b21c43a73330a92 Mon Sep 17 00:00:00 2001
ad54c5
From: Lukas Nykryn <lnykryn@redhat.com>
ad54c5
Date: Mon, 15 Aug 2022 16:32:51 +0200
ad54c5
Subject: [PATCH] fix(drm): add video drivers needed on hyper-v and similar
f226d6
ad54c5
Due to non-availability of Hyper-V video driver hyperv_drm in kdump
ad54c5
initramfs, the console seems to be in hang state with no text over it.
ad54c5
ad54c5
We should also go through the /sys/bus/vmbus/devices and include drivers
ad54c5
referenced there.
ad54c5
ad54c5
(cherry picked from commit 85149b85961aa535a3c61d492cd3594794e5cc3f)
ad54c5
ad54c5
Resolves: #2099502
f226d6
---
ad54c5
 modules.d/50drm/module-setup.sh | 2 +-
ad54c5
 1 file changed, 1 insertion(+), 1 deletion(-)
f226d6
ad54c5
diff --git a/modules.d/50drm/module-setup.sh b/modules.d/50drm/module-setup.sh
ad54c5
index cff0550c..1fb38677 100755
ad54c5
--- a/modules.d/50drm/module-setup.sh
ad54c5
+++ b/modules.d/50drm/module-setup.sh
ad54c5
@@ -31,7 +31,7 @@ installkernel() {
ad54c5
     if [[ $hostonly ]]; then
ad54c5
         local i modlink modname
f226d6
 
ad54c5
-        for i in /sys/bus/{pci/devices,platform/devices,virtio/devices,soc/devices/soc?}/*/modalias; do
ad54c5
+        for i in /sys/bus/{pci/devices,platform/devices,virtio/devices,soc/devices/soc?,vmbus/devices}/*/modalias; do
ad54c5
             [[ -e $i ]] || continue
ad54c5
             [[ -n $(< "$i") ]] || continue
ad54c5
             # shellcheck disable=SC2046
f226d6