Bug 14660 - Document SYSTEMD_DEFAULT_TARGET
Summary: Document SYSTEMD_DEFAULT_TARGET
Status: RESOLVED FIXED
Alias: None
Product: Variables Glossary
Classification: Documentation
Component: variables-glossary (show other bugs)
Version: 3.4.1
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 4.1 M2
Assignee: Michael Opdenacker
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2021-12-13 14:34 UTC by Michael Opdenacker
Modified: 2022-06-22 09:43 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Opdenacker 2021-12-13 14:34:51 UTC
Reported by Robert Day

There is one example of a recipe setting this variable in meta-openembedded:
meta-xfce/recipes-core/images/core-image-minimal-xfce.bb:SYSTEMD_DEFAULT_TARGET = "graphical.target"

And it is also set and used in openembedded-core:
meta/classes/rootfs-postcommands.bbclass:SYSTEMD_DEFAULT_TARGET ?= '${@bb.utils.contains_any("IMAGE_FEATURES", [ "x11-base", "weston" ], "graphical.target", "multi-user.target", d)}'
meta/classes/rootfs-postcommands.bbclass:       if [ -d ${IMAGE_ROOTFS}${sysconfdir}/systemd/system -a -e ${IMAGE_ROOTFS}${systemd_system_unitdir}/${SYSTEMD_DEFAULT_TARGET} ]; then
meta/classes/rootfs-postcommands.bbclass:               ln -sf ${systemd_system_unitdir}/${SYSTEMD_DEFAULT_TARGET} ${IMAGE_ROOTFS}${sysconfdir}/systemd/system/default.target

Michael.