<?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>14536</bug_id>
          
          <creation_ts>2021-08-31 11:22:21 +0000</creation_ts>
          <short_desc>Dev Manual, &quot;Selecting an Initialization Manager&quot;, should mention INIT_MANAGER</short_desc>
          <delta_ts>2023-04-28 08:43:11 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>9</classification_id>
          <classification>Documentation</classification>
          <product>Development Manual</product>
          <component>development</component>
          <version>unspecified</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.3 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert P. J. Day">rpjday</reporter>
          <assigned_to name="Michael Opdenacker">michael.opdenacker</assigned_to>
          <cc>randy.macleod</cc>
    
    <cc>richard.purdie</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>91312</commentid>
    <comment_count>0</comment_count>
    <who name="Robert P. J. Day">rpjday</who>
    <bug_when>2021-08-31 11:22:21 +0000</bug_when>
    <thetext>A good deal of what is here:

https://docs.yoctoproject.org/dev-manual/common-tasks.html#selecting-an-initialization-manager

is subsumed by simply setting INIT_MANAGER appropriately, which will include the appropriate init setup file, such as with init-manager-systemd.inc:

# Use systemd for system initialization
DISTRO_FEATURES:append = &quot; systemd&quot;
DISTRO_FEATURES_BACKFILL_CONSIDERED:append = &quot; sysvinit&quot;
VIRTUAL-RUNTIME_init_manager ??= &quot;systemd&quot;
VIRTUAL-RUNTIME_initscripts ??= &quot;systemd-compat-units&quot;
VIRTUAL-RUNTIME_login_manager ??= &quot;shadow-base&quot;
VIRTUAL-RUNTIME_dev_manager ??= &quot;systemd&quot;

making most of that section unnecessary.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94612</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2023-01-03 18:44:01 +0000</bug_when>
    <thetext>Actually, setting INIT_MANAGER in local.conf doesn&apos;t work any more, at least in Poky which hardcodes it.

I regret this as setting this variable would very easy to do, and document too!

See my question on https://lore.kernel.org/openembedded-core/2893205d-57e1-e63e-5c12-c57c7bbcb924@crashcourse.ca/T/#t</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95474</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2023-04-28 08:43:11 +0000</bug_when>
    <thetext>It&apos;s now possible again to set INIT_MANAGER in local.conf in Poky,
and the documentation now suggests to use this variable:

https://git.yoctoproject.org/yocto-docs/commit/?id=602c0e8f770516256dab04edfd887377303c06bb

Closing this bug.
Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>