| Summary: | module autoload fails on danny when ipk is used | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Documentation] General Docs | Reporter: | Trevor Woerner <twoerner> | ||||
| Component: | docs-general | Assignee: | Tom Zanussi <tom.zanussi> | ||||
| Status: | RESOLVED WONTFIX | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | Medium | CC: | richard.purdie, ross.burton, sgw, tom.zanussi | ||||
| Version: | 1.3.2 | ||||||
| Target Milestone: | 1.3.2 | ||||||
| Hardware: | x86 | ||||||
| OS: | Multiple | ||||||
| Whiteboard: | |||||||
| OS type for building Yocto: | --- | Type of Regression: | --- | ||||
| Verified: | Documentation change: | --- | |||||
| Bug Depends on: | 4484 | ||||||
| Bug Blocks: | |||||||
| Attachments: |
|
||||||
|
Description
Trevor Woerner
2013-04-26 01:27:09 UTC
I'm changing the summary from "elc-2013 kernel lab: lab3 fails if PACKAGE_CLASSES = package_ipk" to better reflect the problem. Because the labs need to be upgraded anyway for dylan, doing that will fix this problem for users and a new bug has been opened for that: https://bugzilla.yoctoproject.org/show_bug.cgi?id=4440 The root problem however still needs to be fixed in danny. This is a danny bug, move to danny. Tom, I've not looked at the kernel lab yet, do you have a hunch as to what the problem could be? No idea, but I'll look into it now.. In danny with ipk, there is no /etc/modules file, and /etc/init.d/modutils.sh only looks at /etc/modules when autoloading modules. In danny with rpm, /etc/modules exists and /etc/init.d/modutils.sh finds it and loads the modules listed there, including our yocto-testmod module from the lab. In dylan with ipk, there is still no /etc/modules, but there is /etc/modules-load.d/*.conf files including our yocto-testmod.conf from the lab. /etc/init.d/modutils.sh in dylan has been changed to autoload the modules named in the *.conf files listed in /etc/init.d/modutils.sh, so in this case correctly autoloads the test module from the lab. In danny with ipk, the /etc/modules-load.d/yocto-testmod.conf file for the lab is there, but modutils.sh in danny doesn't look for it, but /etc/modules instead, so doesn't autoload the module. So, either figure out why /etc/modules doesn't get generated in the ipk case, or bring the modutils.sh change that reads /etc/modules-load.d from dylan to danny. So it seems /etc/modules doesn't get created because update-modules doesn't get run at postinstall, because we're using core-image-minimal for the lab, which doesn't have package-management and therefore doesn't run postinstalls. I believe this bug describes the problem: Bug 4484 - Postinstalls don't run for ipk if package-management is disabled So marking this bug as blocking on 4484. Please see bug 4484 for a more detailed explanation, but the proper fix for this doesn't seem trivial: https://bugzilla.yoctoproject.org/show_bug.cgi?id=4484 There are a couple hacks that can work around this, but they don't seem like things that would be accepted into danny. Because this is a problem that goes back at least to denzil, it's also not a regression, so for that reason as well wouldn't normally be a candidate for a point release either. Also, because this is not a problem in dylan and because the kernel lab has been updated to dylan, the easy workaround is to use the new dylan kernel lab: https://www.yoctodev.org/tools-resources/training/kernel-lab If this is really still a problem anyone thinks is something we need to put resources into to fix in danny, please let me know, and I'll open a brand new bug with the same title as 4484 but for danny. |