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

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

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

Jump to solution
1,910 Views
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 Kudos
Reply
1 Solution
1,900 Views
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

View solution in original post

0 Kudos
Reply
2 Replies
1,901 Views
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 Kudos
Reply
1,895 Views
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 Kudos
Reply