How to cancel the "login" in Yocto

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to cancel the "login" in Yocto

ソリューションへジャンプ
1,944件の閲覧回数
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

ラベル(3)
1 解決策
1,746件の閲覧回数
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

元の投稿で解決策を見る

2 返答(返信)
1,746件の閲覧回数
shivanipatel
Senior Contributor II

Hi, zohan Lin

Please check this thread for the solution.

Regards,

Shivani Patel

1,747件の閲覧回数
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