| Summary: | Document SYSTEMD_DEFAULT_TARGET | ||
|---|---|---|---|
| Product: | [Documentation] Variables Glossary | Reporter: | Michael Opdenacker <michael.opdenacker> |
| Component: | variables-glossary | Assignee: | Michael Opdenacker <michael.opdenacker> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium+ | CC: | randy.macleod |
| Version: | 3.4.1 | ||
| Target Milestone: | 4.1 M2 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Yes (doc changes required) | |
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.