diff options
author | 2021-07-08 18:31:03 +0200 | |
---|---|---|
committer | 2021-07-08 18:35:51 +0200 | |
commit | ceeff435c0b4dc92c30c26b7f3ec8da3fbbd77c0 (patch) | |
tree | 0d92af3017f83331c0d72b6fa8f7d0e6ec04e733 /gen_initramfs.sh | |
parent | gen_cmdline.sh: parse_cmdline(): Allow to override AS, AR, NM & Co via CLI (diff) | |
download | genkernel-ceeff435c0b4dc92c30c26b7f3ec8da3fbbd77c0.tar.gz genkernel-ceeff435c0b4dc92c30c26b7f3ec8da3fbbd77c0.tar.bz2 genkernel-ceeff435c0b4dc92c30c26b7f3ec8da3fbbd77c0.zip |
gen_moddeps.sh: Move modules_kext() to determine_KEXT()
We want debug output but then we cannot use return value
from this function.
Transforming function to determine_KEXT() like determine_KV()
will fix the problem and allows us to keep debug output.
Fixes: 234ce29 ("gen_moddeps.sh: modules_kext() refactored")
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'gen_initramfs.sh')
-rwxr-xr-x | gen_initramfs.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gen_initramfs.sh b/gen_initramfs.sh index 52c5cb8d..b9aeb0be 100755 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -1754,12 +1754,13 @@ append_modules() { gen_die "${error_message}" fi + determine_KEXT + cd "${modules_srcdir}" || gen_die "Failed to chdir to '${modules_srcdir}'!" print_info 2 "$(get_indent 2)modules: >> Copying modules from '${modules_srcdir}' to initramfs ..." local i= mymod= - local -x KEXT="$(modules_kext)" local n_copied_modules=0 for i in $(gen_dep_list) do |