Disable wayland if gdm is available

el9
Nicolas Chauvet 7 years ago
parent 5e36ca5a85
commit 679fb78bdd

@ -405,6 +405,11 @@ if [ "$1" -eq "1" ]; then
%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
%if 0%{?fedora} && 0%{?fedora} < 28
if [ -f %{_sysconfdir}/gdm/custom.conf ] ; then
sed -i -e 's/#WaylandEnable=.*/WaylandEnable=false/' %{_sysconfdir}/gdm/custom.conf
fi
%endif
fi || : fi || :
%if 0%{?fedora} || 0%{?rhel} >= 7 %if 0%{?fedora} || 0%{?rhel} >= 7

Loading…
Cancel
Save