SYSVINIT_ENABLED_GETTYS dynamic setup


Mauro Ziliani
 

Hi all.

I make two images  image1  image1-installer
In image1 I don't need any getty so i'd like to put SYSVINIT_ENALED_GETTYS := ""

image1.bb give the output image1.sdcard
SYSVINIT_ENABLED_GETTYS := "2"
IMAGE_INSTALL_append = "sysvinit-inittab "

This is /etc/inittab i'd like inside image1.sdcard

2:2345:respawn:/sbin/getty 38400 tty2



In image1-installer I need only getty1 so i'd like to setup SYSVINIT_ENABLED GETTYS := "1"

image1-installer.bb give the output image1-installer.sdcard
SYSVINIT_ENABLED_GETTYS := "1"
IMAGE_INSTALL_append = " sysvinit-inittab "

The  /etc/inittab in image1-installer.sdcard contains

1:2345:respawn:/sbin/getty 38400 tty1


There is a way to "configure" sysvinit-inittab_%.bb to make a different output using a PACKAGECONFIG o others variables?

By now I have setup SYSVINIT_ENABLED_GETTYS := "" and than add  2:2345:respawn:/sbin/getty 38400 tty2 or 1:2345:respawn:/sbin/getty 38400 tty1 in the recipe


There is another way?


MZ







Sent from Mailspring, the best free email app for work

Join yocto@lists.yoctoproject.org to automatically receive all group messages.