From: Lukas Nykryn Date: Mon, 15 Aug 2022 14:32:51 +0000 (+0200) Subject: fix(drm): add video drivers needed on hyper-v and similar X-Git-Tag: 058~185 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85149b85961aa535a3c61d492cd3594794e5cc3f;p=thirdparty%2Fdracut.git fix(drm): add video drivers needed on hyper-v and similar 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. --- diff --git a/modules.d/50drm/module-setup.sh b/modules.d/50drm/module-setup.sh index cff0550c9..1fb386778 100755 --- a/modules.d/50drm/module-setup.sh +++ b/modules.d/50drm/module-setup.sh @@ -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