Re: Bug#865382: Possible solution of #865382
On Wed, Jul 26, 2017 at 12:56:17PM +0300, Алексей Шилин wrote:
>Hi,
>
>I've investigated this issue a bit, and it looks like there are actually two things to look at:
>
> 1. Live user doesn't log in automatically.
>
> This is due to autologin not being configured for SDDM by live-config scripts. In fact, there is no script to
> configure SDDM at all.
>
> 2. When one enters the password ("live" by default), session startup fails.
>
> Looks like this is connected to the previous one. As there is no script which configures SDDM, nothing prevents
> xinit configuration script (/lib/live/config/0140-xinit) from being run, which installs the following snippet to
> /etc/profile.d/:
>
> if [ -z "${DISPLAY}" ] && [ $(tty) = /dev/tty1 ]
> then
> while true
> do
> if grep -qs quiet /proc/cmdline
> then
> startx > /dev/null 2>&1
> else
> startx
> fi
> done
> fi
>
> Given that console autologin is enabled by default, this script tries to start the X server in infinite loop. Under
> certain circumstances this interferes with normal session startup by the display manager, leading to the issue
> described above.
>
> Indeed, if one starts the system with "nottyautologin" boot option, the issue vanishes, and it becomes possible to
> successfully log in after typing the default live user password.
>
>I've attached a patch for live-config which adds SDDM configuration script. It *should* solve both issues. However,
>testing is required.
Thanks very much, this seems to be exactly the fix needed. I've just
tested it now... :-)
--
Steve McIntyre, Cambridge, UK. steve@einval.com
Welcome my son, welcome to the machine.
Reply to: