![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1211796
https://bugzilla.suse.com/show_bug.cgi?id=1211796#c24
Michal Koutný
make O="$BUILD_DIR_C" INSTALL_MOD_PATH="$BUILD_DIR_C/mods" modules_install ... DEPMOD /root/build/mods/lib/modules/6.4.0 sh /root/kernel/scripts/depmod.sh depmod 6.4.0 (depmod: ERROR: could not open directory /tmp/depmod.PLcuyk/usr/lib/modules/6.4.0: No such file or directory) (depmod: FATAL: could not search modules: No such file or directory) depmod: ERROR: could not open directory /root/build/mods/usr/lib/modules/99.98.6.4.0: No such file or directory depmod: FATAL: could not search modules: No such file or directory make[1]: *** [/root/kernel/Makefile:1956: modules_install] Error 1
scripts/depmod.sh effectively calls 'depmod -b $INSTALL_MOD_PATH' but `make modules_instdall` won't install under usr/ prefix. Perhaps usr-lib-modules.patch should drop the hunk: --- a/tools/depmod.c +++ b/tools/depmod.c @@ -3009,7 +3009,7 @@ static int do_depmod(int argc, char *argv[]) } cfg.dirnamelen = snprintf(cfg.dirname, PATH_MAX, - "%s/lib/modules/%s", + "%s" PREFIX "/lib/modules/%s", root == NULL ? "" : root, cfg.kversion); if (optind == argc) IOW take value of `-b` arg verbatim regardless of configured prefix. -- You are receiving this mail because: You are the assignee for the bug.