[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to autologin with systemd?



On 02/28/2016 02:38 PM, Gregor Zattler wrote:
Dear debian users,  I configured systemd according to
https://wiki.archlinux.org/index.php/automatic_login_to_virtual_console#Virtual_console
in order to automatically log me in at system startup.  This
worked fine till a few weeks ago:


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

[Service]
ExecStart=-/sbin/agetty -a my-user-name --noclear %I $TERM
Type=idle

with /etc/systemd/system/getty.target.wants/getty@tty1.service
-being a link to /lib/systemd/system/getty@.service


$ systemctl status getty@tty1.service
● getty@tty1.service - Getty on tty1
Loaded: error (Reason: Invalid argument)
Drop-In: /etc/systemd/system/getty@tty1.service.d
└─override.conf
Active: inactive (dead)
Docs: man:agetty(8)
man:systemd-getty-generator(8)
http://0pointer.de/blog/projects/serial-console.html

Invalid argument is strange because if I issue

sudo /sbin/agetty -a my-user-name --noclear tty3 linux

I'm actually logged in on tty3.

Any ideas what's wrong with this?

Ciao, Gregor


Copy "/lib/systemd/system/getty@.service" to "/etc/systemd/system/getty.target.wants/ getty@tty1.service" and change "ExecStart=-/sbin/agetty --noclear %I $TERM" to "ExecStart=-/sbin/agetty -a my-user-name --noclear %I".

I don't like systemd, but that's still working here.

   Lotek



Reply to: