<?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>15378</bug_id>
          
          <creation_ts>2024-01-31 18:45:33 +0000</creation_ts>
          <short_desc>systemd-systemctl-native.bb creates /etc/machine-id called from.image.bbclass</short_desc>
          <delta_ts>2024-02-21 12:37:51 +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>Scripts and Tools</component>
          <version>4.0.20</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</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 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David">elek.david00096</reporter>
          <assigned_to name="David">elek.david00096</assigned_to>
          <cc>hongxu.jia</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</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>98074</commentid>
    <comment_count>0</comment_count>
    <who name="David">elek.david00096</who>
    <bug_when>2024-01-31 18:45:33 +0000</bug_when>
    <thetext>Hi!

When calling the [sysctl script](https://git.openembedded.org/openembedded-core/tree/meta/recipes-core/systemd/systemd-systemctl/systemctl) with preset-all command, it will create an empty /etc/machine-id file.

This is required on readonly filesystem to make the system bootable, but on read-write rootfs it prevents the systemd services to met with the *ConditionFirstBoot=yes* condition, unless implicitly deleted.

The function is called from the image.bbclass during rootfs creation.

David</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98091</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-02-01 15:45:31 +0000</bug_when>
    <thetext>David are you able to send a patch to the oe-core email list?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98131</commentid>
    <comment_count>2</comment_count>
    <who name="David">elek.david00096</who>
    <bug_when>2024-02-05 16:41:42 +0000</bug_when>
    <thetext>(In reply to Randy MacLeod from comment #1)
&gt; David are you able to send a patch to the oe-core email list?

Okay, I will create one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98239</commentid>
    <comment_count>3</comment_count>
    <who name="David">elek.david00096</who>
    <bug_when>2024-02-21 12:37:51 +0000</bug_when>
    <thetext>Created a patch and forwarded it, but based on the reply looks like there is no bug. An easier solution to this problem, was to add stateless-rootfs to IMAGE_FEATURES.

This ticket can be closed based on this.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>