]> git.ipfire.org Git - thirdparty/kmod.git/commit
meson.build: install kmod symlinks to /usr/sbin/
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 7 Nov 2024 14:17:28 +0000 (14:17 +0000)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Mon, 11 Nov 2024 22:12:09 +0000 (16:12 -0600)
commit7eaf41bda7dc744d1f1528ba110ff01cc6656a28
tree32eadd58dde9aeefd8363fb795ba9398cb87dd28
parentae16a0277b7d6193e28d025ce369e223fda88e71
meson.build: install kmod symlinks to /usr/sbin/

With earlier commit we added support for kmod itself to install the
symlinks to kmod. While it works across the board, some distributions
still support (to varying degree) split /usr/bin and /usr/sbin.

This commit changes the location where those are created and bears no
functional change for merged bin-sbin users. While for split ones, it
follows what distributions are doing to a varying extend:

 - Fedora, Alpine - this commit matches exactly what they do
 - Debian, Yocto - they have an extra /bin/lsmod -> ../sbin/kmod symlink
 - Gentoo - as Debian plus an extra /bin/modinfo -> ../sbin/kmod symlink

Loosely based on a Debian patch by Marco d'Itri.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/231
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
Makefile.am
meson.build