[Bug 1211796] New: kernel modules not usrmerged
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1211796 Bug ID: 1211796 Summary: kernel modules not usrmerged Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Kernel Assignee: kernel-bugs@opensuse.org Reporter: msuchanek@suse.com QA Contact: qa-bugs@suse.de Target Milestone: --- Found By: --- Blocker: --- Currently kernel modules are installed through compatibility symlink, and te assumed location is in /lib. Patch kmod and kernel-binary.spec.in to not rely on this symlink. -- You are receiving this mail because: You are the assignee for the bug.
![](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#c11
--- Comment #11 from Maintenance Automation
![](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#c14
--- Comment #14 from Maintenance Automation
![](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#c16
--- Comment #16 from Maintenance Automation
![](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#c20
--- Comment #20 from Maintenance Automation
![](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#c21
--- Comment #21 from Maintenance Automation
![](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#c22
Michal Suchanek
![](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.
![](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#c25
Michal Suchanek
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1211796
Michal Koutný
![](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#c30
--- Comment #30 from Maintenance Automation
![](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#c40
--- Comment #40 from Maintenance Automation
![](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#c42
--- Comment #42 from Maintenance Automation
![](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#c43
--- Comment #43 from Maintenance Automation
![](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#c44
--- Comment #44 from Maintenance Automation
![](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#c45
--- Comment #45 from Maintenance Automation
![](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#c46
--- Comment #46 from Maintenance Automation
![](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#c47
Jan Engelhardt
scripts/depmod.sh effectively calls 'depmod -b $INSTALL_MOD_PATH' but `make modules_instdall` won't install under usr/ prefix.
The following works for me on the pristine kmod-30: make modules_install INSTALL_MOD_PATH=/Someroot/usr The files generated by depmod do not carry any prefixes that I can see, so it does not matter that it called depmod -b /Someroot/usr instead of depmod -b /Someroot --somenewoption=/usr the resulting rpm should be the same to a rpm consumer, i.e. next system boot once that rpm is installed. -- You are receiving this mail because: You are the assignee for the bug.
![](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#c48
--- Comment #48 from Michal Suchanek
scripts/depmod.sh effectively calls 'depmod -b $INSTALL_MOD_PATH' but `make modules_instdall` won't install under usr/ prefix.
The following works for me on the pristine kmod-30:
make modules_install INSTALL_MOD_PATH=/Someroot/usr
That's probably because you have upstream, unpatched kmod installed. However, the goal is to refer to modules directly through the /usr path, not the compatibility symlink. For that kmod needs to be taught about that extra path element. The kmod that expects /usr to be part of the module path would search for modules under /Someroot/usr/usr/lib/modules, and not find any. -- You are receiving this mail because: You are the assignee for the bug.
![](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#c49
--- Comment #49 from Maintenance Automation
![](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#c50
--- Comment #50 from Maintenance Automation
![](https://seccdn.libravatar.org/avatar/a895f78a81a109471893519443e4d933.jpg?s=120&d=mm&r=g)
https://bugzilla.suse.com/show_bug.cgi?id=1211796
Michal Suchanek
![](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#c55
--- Comment #55 from Maintenance Automation
participants (1)
-
bugzilla_noreply@suse.com