From 45f24caee7267b974de0ee7dc5519b9953b291b3 Mon Sep 17 00:00:00 2001 From: Nicolas Chauvet Date: Mon, 20 Apr 2020 09:34:35 +0200 Subject: [PATCH] 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}