cp /usr/lib/systemd/system/[email protected] /usr/lib/systemd/system/[email protected]
update file: [/usr/lib/systemd/system/[email protected]]
add in the line ExecStart= -a USERNAMe after --noclear
example:
ExecStart=-/sbin/agetty --noclear -a root %I 38400 linux
systemctl disable getty@tty1
systemctl enable autologin@tty1
systemctl start autologin@tty1
systemctl enable autologin@ttyS0
systemctl start autologin@ttyS0
if [[ -a /dev/dba1 ]]; then
mount -r -n -t vfat -v /dev/sdb1 /root/ebbrt
sleep 1
if [[ -a /root/ebbrt/run ]]; then
/root/ebbrt/run
fi
fi