[CentOS] depmod madness

Mon Apr 7 21:50:18 UTC 2008
Artie Ziff <artie.ziff at gmail.com>

> Do you want to run depmod against /lib/modules/ ?  Then,
> depmod -a /lib/modules/
> should do.  If you add '-b foo', it will prepend the 'foo' to your
> default version (`uname -r`) which is what you are seeing.

Thank you for your time to respond. Yes I am attempting to build a
custom kernel (and run depmod on the associated root file system
location. I wonder if I am supposed to chroot into the root filesystem
which is being constructed. I think not... as that is why the depmod
options exist, correct; to build in another "./lib" than the native
host's /lib at root "/"?

I had stated that I was experiencing an issue of "append" whereas (if I
am not misinterpreting your answer) you offer an explanation for a
prepend of pathname strings. That's cool. I am grateful for the dialog.

Here is my experience restated:

The native file system location "/lib/modules/2.6.18-53.1.14.el5" is
being "APPENDED" to the base path I set with switch -b.

That is, I say the dir containing the file "modules.dep.temp" is in this


which is

So, you can see that:


is being appended to:


Thanks in advance for any advice.


PS:  The version, 2.6.18-53.1.14.el5, is clearly my build host. So that is coming from running (native) kernel, uname -r:

$ uname -r