Skip to contentSkip to conversation

ref-manual: document SYSTEMD_DEFAULT_TARGET

PATCH New [email protected] 1 participant 1 message Jun 15, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ref-manual: document SYSTEMD_DEFAULT_TARGET

From: Michael Opdenacker <[email protected]>

[YOCTO #14660]

---
 documentation/ref-manual/variables.rst | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
documentation/ref-manual/variables.rst +18 -0
index 375333e7f0..606fb3317d 100644
@@ -7640,6 +7640,24 @@ system and gives an overview of their function and contents.
       For information on Systemd-boot, see the `Systemd-boot
       documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__.
 
+   :term:`SYSTEMD_DEFAULT_TARGET`
+
+      This variable allows to set the default unit that systemd starts at bootup.
+      Usually, this is either ``multi-user.target`` or ``graphical.target``.
+      This works by creating a ``default.target`` symbolic link to the chosen systemd
+      target file.
+
+      See `systemd's documentation
+      <https://www.freedesktop.org/software/systemd/man/systemd.special.html>`__
+      for details.
+
+      For example, this variable is used in the
+      `core-image-minimal-xfce.bb
+      <https://git.openembedded.org/meta-openembedded/tree/meta-xfce/recipes-core/images/core-image-minimal-xfce.bb>`__
+      recipe::
+
+          SYSTEMD_DEFAULT_TARGET = "graphical.target"
+
    :term:`SYSTEMD_PACKAGES`
       When inheriting the :ref:`systemd <ref-classes-systemd>` class,
       this variable locates the systemd unit files when they are not found
Signature · 1 line
2.34.1