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