<?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>7204</bug_id>
          
          <creation_ts>2015-01-20 16:29:59 +0000</creation_ts>
          <short_desc>When using systemd, rpm postinstall scripts are not run on the target</short_desc>
          <delta_ts>2015-10-23 07:01:22 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>11</classification_id>
          <classification>Runtime</classification>
          <product>Package Management Issues</product>
          <component>RPM</component>
          <version>1.8</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Saul Wold">sgw</reporter>
          <assigned_to name="Markus Lehtonen">markus.lehtonen</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
          
          <qa_contact name="Alexandru Georgescu">alexandru.c.georgescu</qa_contact>
          <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>48095</commentid>
    <comment_count>0</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2015-01-20 16:29:59 +0000</bug_when>
    <thetext>When systemd is in DISTRO_FEATURES and package management is enabled the postinstall scripts that did not run during the rootfs creation time are not getting run on the target at first boot.  This was seen when the rootfs was being created and the depmodwrapper was not run during creation, and then on the target depmod was not run either, leaving modules uninstalled.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54890</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-10-01 15:19:32 +0000</bug_when>
    <thetext>*Definitely* need something in oe-selftest for this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54926</commentid>
    <comment_count>2</comment_count>
    <who name="Markus Lehtonen">markus.lehtonen</who>
    <bug_when>2015-10-02 09:25:23 +0000</bug_when>
    <thetext>I was not able to reproduce this. I used openembedded-core, core-image-minimal with the following lines added to local.conf:
IMAGE_FEATURES_append = &quot; package-management&quot;
DISTRO_FEATURES_append = &quot; systemd&quot;
VIRTUAL-RUNTIME_init_manager = &quot;systemd&quot;
DISTRO_FEATURES_BACKFILL_CONSIDERED = &quot;sysvinit&quot;

I also tried without the two latter lines.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54927</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-10-02 10:01:58 +0000</bug_when>
    <thetext>IIRC, in the usual case there are no postinst scripts that need to be deferred.  Pick a random postinst (or write a new recipe) and have it just echo something and exit 1, that should make it run on first boot.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54929</commentid>
    <comment_count>4</comment_count>
    <who name="Markus Lehtonen">markus.lehtonen</who>
    <bug_when>2015-10-02 10:59:10 +0000</bug_when>
    <thetext>That&apos;s exactly what I did.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54930</commentid>
    <comment_count>5</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-10-02 11:02:08 +0000</bug_when>
    <thetext>Awesome.  Closing then.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55645</commentid>
    <comment_count>6</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2015-10-23 07:01:22 +0000</bug_when>
    <thetext>verified as per above comments.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>