diff options
author | Michael Opdenacker <michael.opdenacker@bootlin.com> | 2022-06-15 20:19:38 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-06-21 20:57:17 +0100 |
commit | 1fa6a9bbb760a685010746d8886a0ee0ea464c11 (patch) | |
tree | a6a3aee7a5a061fc84f8a6736b94c328ec307cf1 /documentation/ref-manual | |
parent | c1d1cdcedfa45b9c655437314385ad21b1234c94 (diff) | |
download | poky-1fa6a9bbb760a685010746d8886a0ee0ea464c11.tar.gz |
ref-manual: document SYSTEMD_DEFAULT_TARGET
[YOCTO #14660]
(From yocto-docs rev: d5bcdf9a8b357b96656b62c41834410e662d8546)
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Reported-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/ref-manual')
-rw-r--r-- | documentation/ref-manual/variables.rst | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst index 3a334f4282..28267101d8 100644 --- a/documentation/ref-manual/variables.rst +++ b/documentation/ref-manual/variables.rst | |||
@@ -7666,6 +7666,24 @@ system and gives an overview of their function and contents. | |||
7666 | For information on Systemd-boot, see the `Systemd-boot | 7666 | For information on Systemd-boot, see the `Systemd-boot |
7667 | documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__. | 7667 | documentation <https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/>`__. |
7668 | 7668 | ||
7669 | :term:`SYSTEMD_DEFAULT_TARGET` | ||
7670 | |||
7671 | This variable allows to set the default unit that systemd starts at bootup. | ||
7672 | Usually, this is either ``multi-user.target`` or ``graphical.target``. | ||
7673 | This works by creating a ``default.target`` symbolic link to the chosen systemd | ||
7674 | target file. | ||
7675 | |||
7676 | See `systemd's documentation | ||
7677 | <https://www.freedesktop.org/software/systemd/man/systemd.special.html>`__ | ||
7678 | for details. | ||
7679 | |||
7680 | For example, this variable is used in the | ||
7681 | `core-image-minimal-xfce.bb | ||
7682 | <https://git.openembedded.org/meta-openembedded/tree/meta-xfce/recipes-core/images/core-image-minimal-xfce.bb>`__ | ||
7683 | recipe:: | ||
7684 | |||
7685 | SYSTEMD_DEFAULT_TARGET = "graphical.target" | ||
7686 | |||
7669 | :term:`SYSTEMD_PACKAGES` | 7687 | :term:`SYSTEMD_PACKAGES` |
7670 | When inheriting the :ref:`systemd <ref-classes-systemd>` class, | 7688 | When inheriting the :ref:`systemd <ref-classes-systemd>` class, |
7671 | this variable locates the systemd unit files when they are not found | 7689 | this variable locates the systemd unit files when they are not found |