Skip to contentSkip to conversation

poky.conf: set INIT_MANAGER with ?=

PATCH In review Michael Opdenacker 2 participants 3 messages Jan 23, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 poky.conf: set INIT_MANAGER with ?=

From: Michael Opdenacker <[email protected]>

Allowing to set INIT_MANAGER from conf/local.conf

---

This has been tested on the autobuilder:
https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/4797

This will allow to document INIT_MANAGER properly
and address a few related bugs.

---
 meta-poky/conf/distro/poky.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-poky/conf/distro/poky.conf +1 -1
index dc0e8e76ab..072d2ab32f 100644
@@ -65,7 +65,7 @@ INHERIT += "uninative"
 BB_SIGNATURE_HANDLER ?= "OEEquivHash"
 BB_HASHSERVE ??= "auto"
 
-INIT_MANAGER = "sysvinit"
+INIT_MANAGER ?= "sysvinit"
 
 # We need debug symbols so that SPDX license manifests for the kernel work
 KERNEL_EXTRA_FEATURES:append = " features/debug/debug-kernel.scc"
Signature · 1 line
2.37.2
#1 lore raw
Quoted 22 lines · Michael Opdenacker via lists.yoctoproject.org

From: Michael Opdenacker <[email protected]>

Allowing to set INIT_MANAGER from conf/local.conf

---

This has been tested on the autobuilder:
https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/4797

This will allow to document INIT_MANAGER properly
and address a few related bugs.

---
 meta-poky/conf/distro/poky.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-poky/conf/distro/poky.conf +0 -0
index dc0e8e76ab..072d2ab32f 100644

meta-poky/conf/distro/poky.conf INHERIT += "uninative" · line 69

Quoted 6 lines
meta-poky/conf/distro/poky.conf +1 -1
@@ -65,7 +65,7 @@ INHERIT += "uninative"
 BB_SIGNATURE_HANDLER ?= "OEEquivHash"
 BB_HASHSERVE ??= "auto"
 
-INIT_MANAGER = "sysvinit"
+INIT_MANAGER ?= "sysvinit"
 

This solves the problem for poky, but not poky-tiny or poky-altcfg. I've just sent a version which would address those too. I'd much prefer to fix this issue properly rather than incompletely!

Cheers,

Richard

#2 lore raw

Hi Richard,

Quoted 27 lines · Richard Purdie
Quoted 25 lines · Michael Opdenacker via lists.yoctoproject.org

From: Michael Opdenacker <[email protected]>

Allowing to set INIT_MANAGER from conf/local.conf

---

This has been tested on the autobuilder:
https://autobuilder.yoctoproject.org/typhoon/#/builders/83/builds/4797

This will allow to document INIT_MANAGER properly
and address a few related bugs.

---
  meta-poky/conf/distro/poky.conf | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta-poky/conf/distro/poky.conf +0 -0
index dc0e8e76ab..072d2ab32f 100644
@@ -65,7 +65,7 @@ INHERIT += "uninative"
  BB_SIGNATURE_HANDLER ?= "OEEquivHash"
  BB_HASHSERVE ??= "auto"
 
Quoted 6 lines

meta-poky/conf/distro/poky.conf INHERIT += "uninative" · line 69

Quoted 3 lines
meta-poky/conf/distro/poky.conf +1 -1
-INIT_MANAGER = "sysvinit"
+INIT_MANAGER ?= "sysvinit"
 

This solves the problem for poky, but not poky-tiny or poky-altcfg. I've just sent a version which would address those too. I'd much prefer to fix this issue properly rather than incompletely!

Great! I was actually wondering about those. Glad that we have a generic solution. Thanks
Michael

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com