<?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>3816</bug_id>
          
          <creation_ts>2013-01-31 09:37:35 +0000</creation_ts>
          <short_desc>systemd: investigate mechanism to change default.target</short_desc>
          <delta_ts>2014-03-10 13:06:28 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>1.4</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</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>1.6</target_milestone>
          
          <blocked>5441</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Radu Moisan">radu.moisan</reporter>
          <assigned_to name="Chen Qi">Qi.Chen</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
    
    <cc>song.liu</cc>
    
    <cc>sstncr</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>29384</commentid>
    <comment_count>0</comment_count>
    <who name="Radu Moisan">radu.moisan</who>
    <bug_when>2013-01-31 09:37:35 +0000</bug_when>
    <thetext>we need to find a way to set default.target to multi-user or graphical so that it is appropriately set for particular image type (eg. minimal vs sato)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31367</commentid>
    <comment_count>1</comment_count>
    <who name="Radu Moisan">radu.moisan</who>
    <bug_when>2013-04-02 13:50:31 +0000</bug_when>
    <thetext>Proposed solution from Martin:

systemd:
inherit update-alternatives
ALTERNATIVE_${PN} = &quot;systemd-def-target&quot;
ALTERNATIVE_TARGET[systemd-def-target] = &quot;${systemd_unitdir}/system/multi-user.target&quot;
ALTERNATIVE_LINK_NAME[systemd-def-target] = &quot;${systemd_unitdir}/systemd/system/default.target&quot;
ALTERNATIVE_PRIORITY[systemd-def-target] ?= &quot;1&quot;

xserver-nodm-init and DMs:
inherit update-alternatives
ALTERNATIVE_${PN} = &quot;systemd-def-target&quot;
ALTERNATIVE_TARGET[systemd-def-target] = &quot;${systemd_unitdir}/system/graphical.target&quot;
ALTERNATIVE_LINK_NAME[systemd-def-target] = &quot;${systemd_unitdir}/systemd/system/default.target&quot;
ALTERNATIVE_PRIORITY[systemd-def-target] ?= &quot;10&quot;

Sent patch, waiting for review.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31368</commentid>
    <comment_count>2</comment_count>
    <who name="Radu Moisan">radu.moisan</who>
    <bug_when>2013-04-02 13:51:46 +0000</bug_when>
    <thetext>correction, extra systemd in path

systemd:
inherit update-alternatives
ALTERNATIVE_${PN} = &quot;systemd-def-target&quot;
ALTERNATIVE_TARGET[systemd-def-target] = &quot;${systemd_unitdir}/system/multi-user.target&quot;
ALTERNATIVE_LINK_NAME[systemd-def-target] = &quot;${systemd_unitdir}/system/default.target&quot;
ALTERNATIVE_PRIORITY[systemd-def-target] ?= &quot;1&quot;

xserver-nodm-init and DMs:
inherit update-alternatives
ALTERNATIVE_${PN} = &quot;systemd-def-target&quot;
ALTERNATIVE_TARGET[systemd-def-target] = &quot;${systemd_unitdir}/system/graphical.target&quot;
ALTERNATIVE_LINK_NAME[systemd-def-target] = &quot;${systemd_unitdir}/system/default.target&quot;
ALTERNATIVE_PRIORITY[systemd-def-target] ?= &quot;10&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31771</commentid>
    <comment_count>3</comment_count>
    <who name="Radu Moisan">radu.moisan</who>
    <bug_when>2013-04-09 15:17:50 +0000</bug_when>
    <thetext>we&apos;ll have this on hold until we move along with systemd enablement in xserver-nodm-init. We must update xserver-nodm-init as well so we remain consistent among various image targets.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39777</commentid>
    <comment_count>4</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2014-01-14 06:52:14 +0000</bug_when>
    <thetext>Module: openembedded-core.git
Branch: master
Commit: 049f89155b1e80875aad6e53b21808b827c06915
URL:    http://git.openembedded.org/?p=openembedded-core.git&amp;a=commit;h=049f89155b1e80875aad6e53b21808b827c06915

//Chen Qi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>41032</commentid>
    <comment_count>5</comment_count>
    <who name="Stefan Stanacar">sstncr</who>
    <bug_when>2014-03-10 13:06:28 +0000</bug_when>
    <thetext>Verified in 003d3170edaa9472ee46111caa901ac7ddf9321c</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>