commit 45f24caee7267b974de0ee7dc5519b9953b291b3
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Mon Apr 20 09:34:35 2020 +0200
Fix rhel conditional for dracutopts
xorg-x11-drv-nvidia.spec | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/xorg-x11-drv-nvidia.spec b/xorg-x11-drv-nvidia.spec
index 5f795ec..6670b62 100644
--- a/xorg-x11-drv-nvidia.spec
+++ b/xorg-x11-drv-nvidia.spec
@@ -7,10 +7,10 @@
%global _dracut_conf_d %{_prefix}/lib/dracut/dracut.conf.d
%global _modprobe_d %{_prefix}/lib/modprobe.d/
%global _grubby %{_sbindir}/grubby --update-kernel=ALL
-%if 0%{?rhel}
-%global _dracutopts nouveau.modeset=0 rd.driver.blacklist=nouveau
nvidia-drm.modeset=1
-%else
+%if 0%{?fedora} || 0%{?rhel} > 7
%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
%global debug_package %{nil}
Show replies by date