Bug 8837 - Cannot load just-installed kernel module during opkg configure because depmod call is intercepted and deferred
Summary: Cannot load just-installed kernel module during opkg configure because depmod...
Status: RESOLVED FIXED
Alias: None
Product: opkg
Classification: Yocto Project Subprojects
Component: opkg (show other bugs)
Version: 0.3.2
Hardware: All Multiple
: Undecided major
Target Milestone: ---
Assignee: Haris Okanovic
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-12-17 22:03 UTC by Will Page
Modified: 2016-01-29 19:30 UTC (History)
0 users

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Will Page 2015-12-17 22:03:51 UTC
An opkg installs a kernel module, then postinst calls "depmod -a".  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'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't happen until much later.
Comment 1 Alejandro del Castillo 2015-12-18 16:37:03 UTC
opkg should have a config option to disable intercepts, for cases like this one.
Comment 2 Haris Okanovic 2016-01-29 19:30:50 UTC
Added intercepts_dir option to opkg.conf (commit 0991c27b), which can be used to disable postinst intercepts by setting to /dev/null.