commit: 79a6f985a78beef96c35ed59e5637be384cfc4e8 Author: Ben Kohler <bkohler <AT> gentoo <DOT> org> AuthorDate: Mon May 6 21:42:16 2024 +0000 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> CommitDate: Mon May 6 21:42:16 2024 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=79a6f985
gen_configkernel.sh: use PATH to find depmod Bug: https://bugs.gentoo.org/931324 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> gen_configkernel.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gen_configkernel.sh b/gen_configkernel.sh index 17f9eaf..0158e46 100755 --- a/gen_configkernel.sh +++ b/gen_configkernel.sh @@ -442,14 +442,14 @@ config_kernel() { local cfg_CONFIG_MODULE_COMPRESS_XZ=$(kconfig_get_opt "${KERNEL_OUTPUTDIR}/.config" "CONFIG_MODULE_COMPRESS_XZ") if isTrue "${cfg_CONFIG_MODULE_COMPRESS_GZIP}" then - depmod_GZIP=$(/sbin/depmod -V | tr ' ' '\n' | awk '/ZLIB/{print $1; exit}') + depmod_GZIP=$(depmod -V | tr ' ' '\n' | awk '/ZLIB/{print $1; exit}') if [[ "${depmod_GZIP}" != "+ZLIB" ]] then gen_die 'depmod does not support ZLIB/GZIP, cannot build with CONFIG_MODULE_COMPRESS_GZIP' fi elif isTrue "${cfg_CONFIG_MODULE_COMPRESS_XZ}" then - depmod_XZ=$(/sbin/depmod -V | tr ' ' '\n' | awk '/XZ/{print $1; exit}') + depmod_XZ=$(depmod -V | tr ' ' '\n' | awk '/XZ/{print $1; exit}') if [[ "${depmod_XZ}" != "+XZ" ]] then gen_die 'depmod does not support XZ, cannot build with CONFIG_MODULE_COMPRESS_XZ'