From 2774ad4368fe39b0c37743e97e867883fbfc1561 Mon Sep 17 00:00:00 2001 From: leigh123linux Date: Sat, 4 Nov 2017 22:43:26 +0000 Subject: [PATCH] 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