<?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>15292</bug_id>
          
          <creation_ts>2023-11-22 10:15:58 +0000</creation_ts>
          <short_desc>systemd-compat-units: error at package post-install time</short_desc>
          <delta_ts>2023-11-28 18:04:44 +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>5.0</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>5.0 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Opdenacker">michael.opdenacker</reporter>
          <assigned_to name="Michael Opdenacker">michael.opdenacker</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>97298</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2023-11-22 10:15:58 +0000</bug_when>
    <thetext>On a system built without systemd, I&apos;m getting this error after running
&quot;opkg upgrade&quot; (for example between yocto 4.2.2 and 4.2.3):

Configuring systemd-compat-units
//var/lib/opkg/info/systemd-compat-units.postinst: cd: line 3: can&apos;t cd to /etc/init.d: No such file or directory

This happens because of the way the existence of /etc/init.d/ is tested. If the directory doesn&apos;t exist, the &quot;cd&quot; command issues an error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97299</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2023-11-22 10:25:12 +0000</bug_when>
    <thetext>Proposed a fix:
https://lists.openembedded.org/g/openembedded-core/message/191055</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97351</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2023-11-28 18:04:44 +0000</bug_when>
    <thetext>Fixed by https://git.openembedded.org/openembedded-core/commit/?id=0330331a1386fd2a34b410a7f62b29bfc8dc23c4</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>