Dear all, I want to make a SD burning image card,
so I need to cancel the login as below:
----------------------------------------------------------------------------------------------------------
NXP i.MX Release Distro 4.9.88-2.0.0 imx6qsabresd ttymxc0
imx6qsabresd login: root
root@imx6qsabresd:~#
----------------------------------------------------------------------------------------------------------
I try to add "/bin/login -f root" to /etc/profile, but it failed because the profile is executed after root login.
Someone could tell me how to cancel "login" ?
Thanks a lot,
zohan
Solved! Go to Solution.
Hi Shivani Patel,
It doesn't work.
I think the reason is our system is used "systemd" to init.
So I modify "ExecStart" in /etc/systemd/system/getty.target.wants/serial-getty@ttymxc0.service,
Ex: ExecStart=-/sbin/agetty -a root -8 -L %I 115200 $TERM
Thanks,
zohan
Hi Shivani Patel,
It doesn't work.
I think the reason is our system is used "systemd" to init.
So I modify "ExecStart" in /etc/systemd/system/getty.target.wants/serial-getty@ttymxc0.service,
Ex: ExecStart=-/sbin/agetty -a root -8 -L %I 115200 $TERM
Thanks,
zohan