[CentOS] depmod madness

Sat Apr 5 01:07:51 UTC 2008
Akemi Yagi <amyagi at gmail.com>

On Fri, Apr 4, 2008 at 3:35 PM, Artie Ziff <artie.ziff at gmail.com> wrote:
> Hello,
>  What can I do when attempting to run depmod with these options:
>  -Ae -b base -F System.map
>  to prevent depmod from appending the following path:
>  lib/modules/2.6.18-53.1.14.el5/modules.dep.temp
>  to the specified base? I am specifying a base as:
>  -b ./lib/modules/
>  So depmod errors/fails with: FATAL: Could not open
>  ./lib/modules/
>  btw, '/lib/modules/2.6.18-53.1.14.el5' belongs to the native system that
>  is running on my host
>  Why is depmod using that "system" path?

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.