From f6770b30c3bb49ff317a5987aba9a2a3ed149cf0 Mon Sep 17 00:00:00 2001 From: Kairui Song Date: Tue, 7 Aug 2018 15:25:27 +0800 Subject: [PATCH] dracut-module-setup: Fix DRM module inclusion test for hyper-v We test if to include the drm module or not by testing if there are any drm entry in sysfs. But there is an exception for hyper-v, DRM module take care of hyperv's framebuffer driver as well but hyperv_fb will not create any drm entry. So currently we got black screen on hyperv guest. Fix by detect hyperv's special entry as well. Signed-off-by: Kairui Song --- dracut-module-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh index d1f9f5f..a10244b 100755 --- a/dracut-module-setup.sh +++ b/dracut-module-setup.sh @@ -20,7 +20,7 @@ check() { depends() { local _dep="base shutdown" - if [ -n "$( find /sys/devices -name drm )" ]; then + if [ -n "$( find /sys/devices -name drm )" ] || [ -d /sys/module/hyperv_fb ]; then _dep="$_dep drm" fi