How to change /etc/inittab while building Linux in LTIB

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

How to change /etc/inittab while building Linux in LTIB

ソリューションへジャンプ
1,911件の閲覧回数
s153022
Contributor III

Hi,

I am building MPC8548CDS_20071214-ltib.iso on Centos 7 x86_64

The build is successful and everything is good.

However, I want to change the default terminal in /etc/inittab file.

 

Currently, I am mounting the rootfs and manually changing the below line in /etc/inittab file.

 

before

::respawn:/sbin/getty -L ttyS0 115200 vt100

after

::respawn:/sbin/getty -L ttyS0 115200 vt100

 

Is there any way to do this change before the ltib build so that I don't have to mount it and do it manually after the build?

Best Regards

 

0 件の賞賛
返信
1 解決策
1,901件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to /etc/inittab definition in dist/lfs-5.1/sysconfig/sysconfig.spec.

Please modify CONFIG_SYSCFG_LOGING_TTY in config/platform/mpc8548cds/defconfig

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,902件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to /etc/inittab definition in dist/lfs-5.1/sysconfig/sysconfig.spec.

Please modify CONFIG_SYSCFG_LOGING_TTY in config/platform/mpc8548cds/defconfig

0 件の賞賛
返信
1,896件の閲覧回数
s153022
Contributor III

Thanks , that worked

I changed dist/lfs-5.1/sysconfig/sysconfig.spec  as below.

@@ -130,7 +130,7 @@
cat <<EOF > $RPM_BUILD_ROOT/%{pfx}/etc/inittab
# see busybox-1.00rc2/examples/inittab for more examples
::sysinit:/etc/rc.d/rcS
-$sys_login
+::respawn:/sbin/getty -L ttyS0 115200 vt100
::ctrlaltdel:/sbin/reboot
::shutdown:/etc/rc.d/rcS stop
::restart:/sbin/init

0 件の賞賛
返信