Browse Source

fix graphics startup failure with the rhgb paramter in CentOS8.2

master
GuoChuang 5 years ago committed by Harald Hoyer
parent
commit
d76e9ad5d7
  1. 2
      modules.d/50drm/module-setup.sh

2
modules.d/50drm/module-setup.sh

@ -33,7 +33,7 @@ installkernel() { @@ -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

Loading…
Cancel
Save