How to cancel the "login" in Yocto

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to cancel the "login" in Yocto

Jump to solution
999 Views
zohanlin
Contributor IV

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

Labels (3)
1 Solution
801 Views
zohanlin
Contributor IV

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

View solution in original post

2 Replies
801 Views
shivanipatel
Senior Contributor II

Hi, zohan Lin

Please check this thread for the solution.

Regards,

Shivani Patel

802 Views
zohanlin
Contributor IV

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