Skip to contentSkip to conversation

arago.conf: allow switching between systemd and sysvinit with a variable

PATCH New Denys Dmytriyenko 1 participant 1 message Jan 26, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arago.conf: allow switching between systemd and sysvinit with a variable

---
 meta-arago-distro/conf/distro/arago.conf | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
meta-arago-distro/conf/distro/arago.conf +7 -4
index a8e9a4b..b434509 100644
@@ -60,14 +60,17 @@ DISTRO_FEATURES = "${DISTRO_FEATURES_DEFAULT} ${DISTRO_FEATURES_LIBC}"
 DISTRO_FEATURES_remove = "x11"
 
 # Add additional distro features
-DISTRO_FEATURES_append = " pam wayland opengl systemd"
+DISTRO_FEATURES_append = " pam wayland opengl"
 
 # Set global runtime providers for major components
-VIRTUAL-RUNTIME_dev_manager = "systemd"
-VIRTUAL-RUNTIME_init_manager = "systemd"
-VIRTUAL-RUNTIME_initscripts = "systemd-compat-units"
+ARAGO_SYSVINIT ?= "0"
+VIRTUAL-RUNTIME_dev_manager = "${@base_conditional("ARAGO_SYSVINIT", "1", "udev", "systemd", d)}"
+VIRTUAL-RUNTIME_init_manager = "${@base_conditional("ARAGO_SYSVINIT", "1", "sysvinit", "systemd", d)}"
+VIRTUAL-RUNTIME_initscripts = "${@base_conditional("ARAGO_SYSVINIT", "1", "initscripts", "systemd-compat-units", d)}"
 VIRTUAL-RUNTIME_login_manager = "busybox shadow"
 
+DISTRO_FEATURES_append = "${@base_conditional("ARAGO_SYSVINIT", "1", "", " systemd", d)}"
+
 # Set preferred Qt version
 QT_PROVIDER ?= "qt5"
 
Signature · 1 line
2.7.4