You are not logged in.

#1 2018-10-31 08:07:25

sayonalion
Member
Registered: 2016-10-25
Posts: 46

Shell isn't loaded after autologin

Hi.

I configured the automatic login on tty after boot using the following systemd drop-in snippet:

# /etc/systemd/system/getty@tty1.service.d/override.conf

[Service]
ExecStart=
ExecStart=-/usr/bin/agetty --autologin user --noclear %I $TERM

It works, however, the shell isn't instantly loaded after the autologin. The blinking cursor is
displayed on tty instead of the shell prompt. I have to press any keys on the keyboard a couple of
times or switch to another tty and switch back to the current one in order the shell to finish
loading.

What can be the reason of this? How to force the shell to load instantly after the autologin without
the need of any additional actions?

Thanks.

Offline

#2 2018-10-31 15:34:00

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Shell isn't loaded after autologin

You did actually replace user with your username in the drop-in, yes?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2018-10-31 22:40:19

sayonalion
Member
Registered: 2016-10-25
Posts: 46

Re: Shell isn't loaded after autologin

Slithery wrote:

You did actually replace user with your username in the drop-in, yes?

Well, no. “user” is actually my username.

I want to point out, that the automatic login do work, but there exist a delay between autoload
finishing and shell loading. In rare cases this delay is absent and the shell is loaded right after
the autologin, sometimes the shell is loaded after about five seconds, but in the majority of cases
the shell isn't loaded and I have to press some keys on the keyboard in order to make the process go
on.

Offline

#4 2018-10-31 22:48:06

loqs
Member
Registered: 2014-03-06
Posts: 19,110

Re: Shell isn't loaded after autologin

Please post the output of dmesg from a boot where there you have to use key presses to continue autologin.

Offline

#5 2018-10-31 23:11:54

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,743

Online

Board footer

Powered by FluxBB