Hi,
I try to modify the systemd getty service: /etc/systemd/system/getty.target.wants/getty@tty1.service, by changing the:
ExecStart=-/sbin/agetty --noclear %I $TERM
to
ExecStart=-/sbin/agetty -a root --noclear %I $TERM
But it does not work correctly. Anybody has the experience?
Thanks.
Ok, done by myself.
cp /lib/systemd/system/serial-getty@.service /etc/systemd/system/getty.target.wants/serial-getty@<console>.service
<console> aligned with the kernel commandline.
And append the "-a root" for auto login:
ExecStart=-/sbin/agetty -8 -a root -L %I 115200 $TERM