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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
1,905 次查看
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,895 次查看
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,896 次查看
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,890 次查看
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 项奖励
回复