Skip to contentSkip to conversation

arago-image.inc: fix the default systemd target

PATCH New [email protected] 1 participant 1 message Jun 7, 2023

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 arago-image.inc: fix the default systemd target

From: Randolph Sapp <[email protected]>

SYSTEMD_DEFAULT_TARGET is dynamically set based on the contents of IMAGE_FEATURES. Would you like to know what doesn't get updated when we use a bunch of package groups to dictate what is present in the image?

This makes systemd actually start graphical applications if the opengl distro feature is set. This will need to be adjusted if further graphical environments are added.

---
 meta-arago-distro/recipes-core/images/arago-image.inc | 5 +++++
 1 file changed, 5 insertions(+)
meta-arago-distro/recipes-core/images/arago-image.inc +5 -0
index d00c1f70..8e8eb114 100644
@@ -6,6 +6,11 @@ COMPATIBLE_MACHINE = "ti-soc"
 
 IMAGE_FEATURES += "package-management splash"
 
+# this is required to make sure the proper systemd default target gets set
+IMAGE_FEATURES += " \
+	${@bb.utils.contains("DISTRO_FEATURES", "wayland", "weston", "", d)} \
+"
+
 # 4KB per 1 inode should be enough
 EXTRA_IMAGECMD:ext2.gz += "-i 4096"
 
Signature · 1 line
2.40.1