]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix graphics startup failure with the rhgb paramter in CentOS8.2
authorGuoChuang <guo.chuang@zte.com.cn>
Mon, 24 Aug 2020 06:03:48 +0000 (14:03 +0800)
committerHarald Hoyer <harald@hoyer.xyz>
Thu, 3 Sep 2020 13:27:14 +0000 (15:27 +0200)
modules.d/50drm/module-setup.sh

index 08cfa45bdd5cccf3d1d1b399d1814c99c22ceb98..c69b2cfa840dccebea4aa0707997a2730ce43f84 100755 (executable)
@@ -33,7 +33,7 @@ installkernel() {
     if [[ $hostonly ]]; then
         for i in /sys/bus/{pci/devices,virtio/devices,soc/devices/soc?}/*/modalias; do
             [[ -e $i ]] || continue
-            if hostonly="" dracut_instmods --silent -s "drm_crtc_init" -S "iw_handler_get_spy" $(<$i); then
+            if hostonly="" dracut_instmods --silent -s "drm_crtc_init|drm_dev_register" -S "iw_handler_get_spy" $(<$i); then
                 if strstr "$(modinfo -F filename $(<$i) 2>/dev/null)" radeon.ko; then
                     hostonly='' instmods amdkfd
                 fi