commit c2eb98c2d4d3d216710d9429903c6ff018f55c1b
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 7c32494..865ed07 100644
--- a/xorg-x11-drv-nvidia.spec
+++ b/xorg-x11-drv-nvidia.spec
@@ -421,7 +421,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