Fix rhel conditional for dracutopts

el9
Nicolas Chauvet 5 years ago
parent 9b4e4b7c7f
commit dc7b3ced38

@ -7,10 +7,10 @@
%global _dracut_conf_d %{_prefix}/lib/dracut/dracut.conf.d %global _dracut_conf_d %{_prefix}/lib/dracut/dracut.conf.d
%global _modprobe_d %{_prefix}/lib/modprobe.d/ %global _modprobe_d %{_prefix}/lib/modprobe.d/
%global _grubby %{_sbindir}/grubby --update-kernel=ALL %global _grubby %{_sbindir}/grubby --update-kernel=ALL
%if 0%{?rhel} %if 0%{?fedora} || 0%{?rhel} > 7
%global _dracutopts nouveau.modeset=0 rd.driver.blacklist=nouveau nvidia-drm.modeset=1
%else
%global _dracutopts rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1 %global _dracutopts rd.driver.blacklist=nouveau modprobe.blacklist=nouveau nvidia-drm.modeset=1
%else
%global _dracutopts nouveau.modeset=0 rd.driver.blacklist=nouveau nvidia-drm.modeset=1
%endif %endif
%global debug_package %{nil} %global debug_package %{nil}

Loading…
Cancel
Save