Remove nomodeset from cmdline during %post

el9
leigh123linux 7 years ago
parent d624ee2ad1
commit 2774ad4368

@ -404,7 +404,7 @@ fi
%post %post
/sbin/ldconfig /sbin/ldconfig
if [ "$1" -eq "1" ]; then if [ "$1" -eq "1" ]; then
%{_grubby} --args='%{_dracutopts}' &>/dev/null %{_grubby} --remove-args='nomodeset' --args='%{_dracutopts}' &>/dev/null
%if 0%{?fedora} || 0%{?rhel} >= 7 %if 0%{?fedora} || 0%{?rhel} >= 7
sed -i -e 's/GRUB_CMDLINE_LINUX="/GRUB_CMDLINE_LINUX="%{_dracutopts} /g' /etc/default/grub sed -i -e 's/GRUB_CMDLINE_LINUX="/GRUB_CMDLINE_LINUX="%{_dracutopts} /g' /etc/default/grub
%endif %endif

Loading…
Cancel
Save