Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/kmod: use the correct path for kmod
@ 2022-10-12  1:34 Li Chen
  2022-10-12 20:40 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 3+ messages in thread
From: Li Chen @ 2022-10-12  1:34 UTC (permalink / raw)
  To: buildroot; +Cc: Li Chen

Content-Transfer-Encoding: 8bit

kmod install path is always /usr/bin/kmod instead
of /bin/kmod.

So if we link modprobe/lsmod/... to /bin/kmod

We will get error like:
> # modprobe
> -sh: modprobe: not found

because it points to:
> # ls -liah /sbin/modprobe
>   2551 lrwxrwxrwx    1 root     root          11 Sep 25 10:05 /sbin/modprobe -> ../bin/kmod

and kmod is under /usr/bin/kmod instead of /bin/kmod.

Signed-off-by: Li Chen <me@linux.beauty>
---
 package/kmod/kmod.mk | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/package/kmod/kmod.mk b/package/kmod/kmod.mk
index 82e8597759..cfb4a27cf3 100644
--- a/package/kmod/kmod.mk
+++ b/package/kmod/kmod.mk
@@ -73,12 +73,7 @@ ifeq ($(BR2_PACKAGE_KMOD_TOOLS),y)
 KMOD_LICENSE += , GPL-2.0+ (tools)
 KMOD_LICENSE_FILES += COPYING
 
-# /sbin is really /usr/sbin with merged /usr, so adjust relative symlink
-ifeq ($(BR2_ROOTFS_MERGED_USR),y)
-KMOD_BIN_PATH = ../bin/kmod
-else
 KMOD_BIN_PATH = ../usr/bin/kmod
-endif
 
 define KMOD_INSTALL_TOOLS
 	for i in depmod insmod lsmod modinfo modprobe rmmod; do \
-- 
2.37.2

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-10-16  4:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-12  1:34 [Buildroot] [PATCH] package/kmod: use the correct path for kmod Li Chen
2022-10-12 20:40 ` Thomas Petazzoni via buildroot
2022-10-16  4:08   ` Li Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox