<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>14660</bug_id>
          
          <creation_ts>2021-12-13 14:34:51 +0000</creation_ts>
          <short_desc>Document SYSTEMD_DEFAULT_TARGET</short_desc>
          <delta_ts>2022-06-22 09:43:47 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>9</classification_id>
          <classification>Documentation</classification>
          <product>Variables Glossary</product>
          <component>variables-glossary</component>
          <version>3.4.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.1 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Opdenacker">michael.opdenacker</reporter>
          <assigned_to name="Michael Opdenacker">michael.opdenacker</assigned_to>
          <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>92158</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2021-12-13 14:34:51 +0000</bug_when>
    <thetext>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 = &quot;graphical.target&quot;

And it is also set and used in openembedded-core:
meta/classes/rootfs-postcommands.bbclass:SYSTEMD_DEFAULT_TARGET ?= &apos;${@bb.utils.contains_any(&quot;IMAGE_FEATURES&quot;, [ &quot;x11-base&quot;, &quot;weston&quot; ], &quot;graphical.target&quot;, &quot;multi-user.target&quot;, d)}&apos;
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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93560</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2022-06-22 09:43:47 +0000</bug_when>
    <thetext>Now fixed in the manuals:
https://git.yoctoproject.org/yocto-docs/commit/?h=master-next&amp;id=d5bcdf9a8b357b96656b62c41834410e662d8546</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>