All of lore.kernel.org
 help / color / mirror / Atom feed
* SYSVINIT_ENABLED_GETTYS dynamic setup
@ 2021-03-31 22:08 Mauro Ziliani
  0 siblings, 0 replies; only message in thread
From: Mauro Ziliani @ 2021-03-31 22:08 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1074 bytes --]

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 (https://getmailspring.com/), the best free email app for work

[-- Attachment #2: Type: text/html, Size: 1489 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-31 22:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-31 22:08 SYSVINIT_ENABLED_GETTYS dynamic setup Mauro Ziliani

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.