Article 5NGWE Using late_command to enable autologin

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?latest?d=yIl2AUoC8zA latest?i=9FvpO2Xm_Bo:upgoFfHd_Xg:F7zBnMy latest?i=9FvpO2Xm_Bo:upgoFfHd_Xg:V_sGLiP latest?d=qj6IDK7rITs latest?i=9FvpO2Xm_Bo:upgoFfHd_Xg:gIN9vFw9FvpO2Xm_Bo
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments