Various agetty tricks to make booting into a system smoother
Make an override for getty@tty.service with the following
# /etc/systemd/system/getty@tty1.service.d/autologin.conf
[Service]
ExecStart=
ExecStart=-/sbin/agetty -o '-p -f -- \\u' --skip-login --nonewline --noissue --noclear --autologin vociferous - $TERM#$HOME/.bashrc snippet
export AUTOSTART=wayland
if [[ $AUTOSTART = "wayland" ]] && [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
/usr/lib/plasma-dbus-run-session-if-needed /usr/bin/startplasma-wayland
elif [[ $AUTOSTART = "x11" ]] && [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
exec startx -- -keeptty >~/.xorg.log 2>&1
fi
Last modified: Tue Nov 4 15:40:11 2025