]> git.proxmox.com Git - mirror_zfs.git/commit
kmodtool: depmod path
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 11 Sep 2019 18:14:50 +0000 (11:14 -0700)
committerGitHub <noreply@github.com>
Wed, 11 Sep 2019 18:14:50 +0000 (11:14 -0700)
commit5b51c15861a0c066b25bfa4741a6df16d0c63884
treeaeba2cf5f49c128718628e35ab0ce27b2b5501cd
parent490e23cdf498d6aedb449c9dc606ae4e114d18b7
kmodtool: depmod path

Determine the location of depmod on the system, either /sbin/depmod or
/usr/sbin/depmod.  Then use that path when generating the specfile.

Additionally, update the Requires lines to reference the package which
provides depmod rather than the binary itself.  For CentOS/RHEL 7+8
and all supported Fedora releases this is the kmod package, and for
CentOS/RHEL 6 it is the module-init-tools package.

Reviewed-by: Minh Diep <mdiep@whamcloud.com>
Signed-off-by: Olaf Faaland <faaland1@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #8724
Closes #9310
scripts/kmodtool