Bug 4867

Summary: pkg_postinst_kernel-image calls depmod but there is no RDEPENDS on module-init-tools-depmod
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Holger Freyther <holger>
Component: kernelAssignee: Darren Hart <dvhart>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: bluelightning, bruce.ashfield, tom.zanussi
Version: unspecified   
Target Milestone: 1.5 M5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Holger Freyther 2013-07-18 15:58:00 UTC
I ended up with an image without having depmod. The upgrade with opkg upgrade then prints a lot of errors like this. This is not with a Yocto kernel but the one used for my kernel and I am using the kernel.bbclass.



Configuring kernel-image-3.4.53-g6db11b6-dirty.
//var/lib/opkg/info/kernel-image-3.4.53-g6db11b6-dirty.postinst: line 7: depmod: command not found
Configuring kernel-module-dspdl.
//var/lib/opkg/info/kernel-module-dspdl.postinst: line 3: depmod: command not found
Configuring kernel-module-dspdl-dm644x.
//var/lib/opkg/info/kernel-module-dspdl-dm644x.postinst: line 3: depmod: command not found
Configuring kernel-module-fpgadl.
/bin/sh: error while loading shared libraries: /lib/libdl.so.2: file too short
Configuring kernel-module-nls-utf8.
//var/lib/opkg/info/kernel-module-nls-utf8.postinst: line 3: depmod: command not found
Configuring kernel-module-nls-ascii.
//var/lib/opkg/info/kernel-module-nls-ascii.postinst: line 3: depmod: command not found
Collected errors:
 * pkg_run_script: package "kernel-image-3.4.53-g6db11b6-dirty" postinst script returned status 127.
 * opkg_configure: kernel-image-3.4.53-g6db11b6-dirty.postinst returned 127.
 * pkg_run_script: package "kernel-module-dspdl" postinst script returned status 127.
 * opkg_configure: kernel-module-dspdl.postinst returned 127.
 * pkg_run_script: package "kernel-module-fpgadl" postinst script returned status 127.
 * opkg_configure: kernel-module-fpgadl.postinst returned 127.
 * pkg_run_script: package "kernel-module-nls-utf8" postinst script returned status 127.
 * opkg_configure: kernel-module-nls-utf8.postinst returned 127.
 * pkg_run_script: package "kernel-module-nls-ascii" postinst script returned status 127.
 * opkg_configure: kernel-module-nls-ascii.postinst returned 127.
Comment 1 Darren Hart 2013-07-18 16:35:14 UTC
What is the bug you are reporting? If you can't have kmod in your image then you shouldn't be building modules...
Comment 2 Paul Eggleton 2013-07-25 14:35:37 UTC
I think what Holger is saying is not that he can't have kmod but that it wasn't brought in by anything.
Comment 3 Darren Hart 2013-09-18 15:24:15 UTC
ed3ef08 qemumips: fix keyboard entry in graphical boots