<?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>12212</bug_id>
          
          <creation_ts>2017-10-10 09:41:50 +0000</creation_ts>
          <short_desc>Path for modprobe.d and modconf.d should be set through variables.</short_desc>
          <delta_ts>2023-07-10 16:40: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>configuration</component>
          <version>unspecified</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>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ola Nilsson">ola.x.nilsson</reporter>
          <assigned_to name="Ola Nilsson">ola.x.nilsson</assigned_to>
          <cc>quaresma.jose</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>77483</commentid>
    <comment_count>0</comment_count>
    <who name="Ola Nilsson">ola.x.nilsson</who>
    <bug_when>2017-10-10 09:41:50 +0000</bug_when>
    <thetext>The paths used for modprobe.d and modconf.d in kernel-modules-split.bbclass
are hardcoded.  They should use variables like all other paths.
This matters both for files generated by the recipe/class and by the package makefile.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77545</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2017-10-12 14:59:19 +0000</bug_when>
    <thetext>I have no objection to this in principle however I do wonder what assumptions the underlying software has about these paths. Its one thing to make it configurable, its another whether all of the software using the paths responds to the configuration options.

I won&apos;t want to do this if it meant carrying a lot of patches to software with no hope of upstreaming them as I don&apos;t see this as an important enough issue based on the information here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77565</commentid>
    <comment_count>2</comment_count>
    <who name="Ola Nilsson">ola.x.nilsson</who>
    <bug_when>2017-10-13 08:02:04 +0000</bug_when>
    <thetext>systemd loads modules according to files in 

/etc/modules-load.d/*.conf
/run/modules-load.d/*.conf
/usr/lib/modules-load.d/*.conf

according to &apos;man modules-load.d&apos;

modprobe uses conf files in 

/lib/modprobe.d/*.conf
/etc/modprobe.d/*.conf
/run/modprobe.d/*.conf

according to &apos;man modprobe.d&apos;.

I&apos;m not sure what other software you are thinking about.

We put our files in /usr and /lib (read-only on our products) and it is possible to handle that with the current kernel.bbclass and kernel-modules.bbclass.  But when we want to use the usrmerge feature it requires a rather ugly hack to split_module_packages.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85305</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2019-10-10 15:10:12 +0000</bug_when>
    <thetext>Ola, Are you able to send a patch?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85320</commentid>
    <comment_count>4</comment_count>
    <who name="Ola Nilsson">ola.x.nilsson</who>
    <bug_when>2019-10-11 10:38:04 +0000</bug_when>
    <thetext>I guess it&apos;s too late for the zeus release, so there is no hurry?
Then yes, I can prepare a patch. Eventually :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85322</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2019-10-11 13:52:26 +0000</bug_when>
    <thetext>Thanks Ola. It&apos;s possible that the change could be backported to zeus if it&apos;s not too disruptive or risky.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91758</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2021-10-14 15:12:59 +0000</bug_when>
    <thetext>Any update Ola?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91765</commentid>
    <comment_count>7</comment_count>
    <who name="Ola Nilsson">ola.x.nilsson</who>
    <bug_when>2021-10-15 10:57:35 +0000</bug_when>
    <thetext>Sorry, there is always something more pressing to do...
I still want to add this functionality.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95750</commentid>
    <comment_count>8</comment_count>
    <who name="Jose Quaresma">quaresma.jose</who>
    <bug_when>2023-06-20 08:41:58 +0000</bug_when>
    <thetext>I have submit a patch for this [2] but because it looks like busybox don&apos;t support other path than /etc [1] so the implementation only relocate the default /etc location when systemd is enabled [3].

[1] https://git.busybox.net/busybox/tree/modutils/modprobe.c?id=669c40ed8ebf480c95ce36135104e474e361a7e6#n658
[2] https://lists.openembedded.org/g/openembedded-core/message/177186
[3] https://lists.openembedded.org/g/openembedded-core/message/183123</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95881</commentid>
    <comment_count>9</comment_count>
    <who name="Jose Quaresma">quaresma.jose</who>
    <bug_when>2023-07-04 10:43:01 +0000</bug_when>
    <thetext>This bug should be fixed with [1] and [2] also adds systemd configurations.

[1] https://git.yoctoproject.org/poky/commit/?id=303421dce02fec67daab0dc86d85e11963d5741f

[2] https://lists.openembedded.org/g/openembedded-core/message/183823</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95896</commentid>
    <comment_count>10</comment_count>
    <who name="Jose Quaresma">quaresma.jose</who>
    <bug_when>2023-07-10 16:40:44 +0000</bug_when>
    <thetext>This bug should be fixed with [1] and [2] also adds systemd configurations.

[1] https://git.yoctoproject.org/poky/commit/?id=303421dce02fec67daab0dc86d85e11963d5741f

[2] https://git.yoctoproject.org/poky/commit/?id=6704606b351c4d570cce96ee9afb38c565829790</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>