ab0e4d
From add76751a1bc290088ca650cbec0be3696beb8d6 Mon Sep 17 00:00:00 2001
ab0e4d
From: GuoChuang <guo.chuang@zte.com.cn>
ab0e4d
Date: Mon, 24 Aug 2020 14:03:48 +0800
ab0e4d
Subject: [PATCH] fix graphics startup failure with the rhgb paramter in
ab0e4d
 CentOS8.2
ab0e4d
ab0e4d
(cherry picked from commit d76e9ad5d7b16edb3c544ed3888640bea0efbf72)
ab0e4d
ab0e4d
Resolves: #1874506
ab0e4d
---
ab0e4d
 modules.d/50drm/module-setup.sh | 2 +-
ab0e4d
 1 file changed, 1 insertion(+), 1 deletion(-)
ab0e4d
ab0e4d
diff --git a/modules.d/50drm/module-setup.sh b/modules.d/50drm/module-setup.sh
ab0e4d
index a1711c00..b4ead7f2 100755
ab0e4d
--- a/modules.d/50drm/module-setup.sh
ab0e4d
+++ b/modules.d/50drm/module-setup.sh
ab0e4d
@@ -33,7 +33,7 @@ installkernel() {
ab0e4d
     if [[ $hostonly ]]; then
ab0e4d
         for i in /sys/bus/{pci/devices,virtio/devices,soc/devices/soc?}/*/modalias; do
ab0e4d
             [[ -e $i ]] || continue
ab0e4d
-            if hostonly="" dracut_instmods --silent -s "drm_crtc_init" -S "iw_handler_get_spy" $(<$i); then
ab0e4d
+            if hostonly="" dracut_instmods --silent -s "drm_crtc_init|drm_dev_register" -S "iw_handler_get_spy" $(<$i); then
ab0e4d
                 if strstr "$(modinfo -F filename $(<$i) 2>/dev/null)" radeon.ko; then
ab0e4d
                     hostonly='' instmods amdkfd
ab0e4d
                 fi
ab0e4d