From 160340248c7aa8462129b24792d9baae11346511 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Fri, 6 Jan 2017 15:22:04 +0000 Subject: live.cfg: for GNOME, disable Wayland when we know it won't work. This works around the gdm autologin bug (mga#20079). --- config/live.cfg | 2 ++ files/50gdm-nokms-disable-wayland.xsetup | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100755 files/50gdm-nokms-disable-wayland.xsetup diff --git a/config/live.cfg b/config/live.cfg index df36c77..33e3478 100644 --- a/config/live.cfg +++ b/config/live.cfg @@ -39,6 +39,8 @@ my $_l = { [ 'files/glib2-branding.gschema.override', '/usr/share/glib-2.0/schemas/glib2-branding.gschema.override', { mode => 0644 } ], # enable root access to display to allow MCC and draklive-install to be run from the desktop [ 'files/gnome-enable-root-gui.desktop', '/etc/xdg/autostart/gnome-enable-root-gui.desktop', { mode => 0644 } ], + # disable Wayland when we know it won't work (workaround for mga#20079) + [ 'files/50gdm-nokms-disable-wayland.xsetup', '/etc/X11/xsetup.d/50gdm-nokms-disable-wayland.xsetup', { mode => 0755 } ], ), # blacklist pata_acpi [ 'files/blacklist_ide.conf', '/etc/modprobe.d/blacklist_ide.conf', { mode => 0644 } ], diff --git a/files/50gdm-nokms-disable-wayland.xsetup b/files/50gdm-nokms-disable-wayland.xsetup new file mode 100755 index 0000000..6232353 --- /dev/null +++ b/files/50gdm-nokms-disable-wayland.xsetup @@ -0,0 +1,6 @@ +#!/bin/sh +if [ -e /run/mgalive -a -f /etc/X11/gdm/custom.conf ]; then + if /bin/grep -q nokmsboot /proc/cmdline; then + sed -i 's/#WaylandEnable=false/WaylandEnable=false/' /etc/X11/gdm/custom.conf + fi +fi -- cgit v1.2.1