<?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>8837</bug_id>
          
          <creation_ts>2015-12-17 22:03:51 +0000</creation_ts>
          <short_desc>Cannot load just-installed kernel module during opkg configure because depmod call is intercepted and deferred</short_desc>
          <delta_ts>2016-01-29 19:30:50 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>opkg</product>
          <component>opkg</component>
          <version>0.3.2</version>
          <rep_platform>All</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>Undecided</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Will Page">will.page</reporter>
          <assigned_to name="Haris Okanovic">haris.okanovic</assigned_to>
          
          
          
          <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>57367</commentid>
    <comment_count>0</comment_count>
    <who name="Will Page">will.page</who>
    <bug_when>2015-12-17 22:03:51 +0000</bug_when>
    <thetext>An opkg installs a kernel module, then postinst calls &quot;depmod -a&quot;.  The opkg intercept causes the depmod invocation to be deferred until later.  Meanwhile, whether in this postinst or in a later one, attempts to load/use that kernel module fail because depmod hasn&apos;t run yet.

Hypothetically, the same issue could occur with the ldconfig intercept.  For example, if a package installs a library, then a later package wants to start a service that depends on that library.  The service start request will occur immediately, meanwhile the ldconfig call won&apos;t happen until much later.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57389</commentid>
    <comment_count>1</comment_count>
    <who name="Alejandro del Castillo">alejandro.delcastillo</who>
    <bug_when>2015-12-18 16:37:03 +0000</bug_when>
    <thetext>opkg should have a config option to disable intercepts, for cases like this one.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58354</commentid>
    <comment_count>2</comment_count>
    <who name="Haris Okanovic">haris.okanovic</who>
    <bug_when>2016-01-29 19:30:50 +0000</bug_when>
    <thetext>Added intercepts_dir option to opkg.conf (commit 0991c27b), which can be used to disable postinst intercepts by setting to /dev/null.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>