commit 2774ad4368fe39b0c37743e97e867883fbfc1561
Author: leigh123linux <leigh123linux(a)googlemail.com>
Date: Sat Nov 4 22:43:26 2017 +0000
Remove nomodeset from cmdline during %post
xorg-x11-drv-nvidia.spec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/xorg-x11-drv-nvidia.spec b/xorg-x11-drv-nvidia.spec
index 48b1e1b..28e799b 100644
--- a/xorg-x11-drv-nvidia.spec
+++ b/xorg-x11-drv-nvidia.spec
@@ -404,7 +404,7 @@ fi
%post
/sbin/ldconfig
if [ "$1" -eq "1" ]; then
- %{_grubby} --args='%{_dracutopts}' &>/dev/null
+ %{_grubby} --remove-args='nomodeset' --args='%{_dracutopts}'
&>/dev/null
%if 0%{?fedora} || 0%{?rhel} >= 7
sed -i -e 's/GRUB_CMDLINE_LINUX="/GRUB_CMDLINE_LINUX="%{_dracutopts}
/g' /etc/default/grub
%endif