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

how to autologin with systemd?



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
-- 
 -... --- .-. . -.. ..--.. ...-.-


Reply to: