Using late_command to enable autologin
by mahmoodn from LinuxQuestions.org on (#5NGWE)
I run the following commands after a server installation in order to enable auto login.
Code:sudo systemctl edit getty@tty1
[Service]
ExecStart=
ExecStart=-/sbin/agetty -a <VM USER> --noclear %I $TERMI would like to write those commands in a preseed file for unattended installation. I know I have to use d-i preseed/late_command but I don't know how to echo the text to systemctl edit getty@tty1. Any idea about that?
Code:sudo systemctl edit getty@tty1
[Service]
ExecStart=
ExecStart=-/sbin/agetty -a <VM USER> --noclear %I $TERMI would like to write those commands in a preseed file for unattended installation. I know I have to use d-i preseed/late_command but I don't know how to echo the text to systemctl edit getty@tty1. Any idea about that?