diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2021-07-06 00:19:47 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2021-07-06 01:40:51 +0200 |
commit | e7f7d6a7126ecec0bc7a62dd45cb140fa1e8684e (patch) | |
tree | 129219a93c216aaea6740f5aefe7819c20c192da | |
parent | gen_moddeps.sh: modules_kext(): Add ZSTD support for kernel modules (diff) | |
download | genkernel-e7f7d6a7.tar.gz genkernel-e7f7d6a7.tar.bz2 genkernel-e7f7d6a7.zip |
gen_initramfs.sh: append_modules(): Export KEXT variable
This will allow us to call modules_kext() just once.
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
-rwxr-xr-x | gen_initramfs.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gen_initramfs.sh b/gen_initramfs.sh index b826f173..52c5cb8d 100755 --- a/gen_initramfs.sh +++ b/gen_initramfs.sh @@ -1759,18 +1759,18 @@ append_modules() { print_info 2 "$(get_indent 2)modules: >> Copying modules from '${modules_srcdir}' to initramfs ..." local i= mymod= - local MOD_EXT="$(modules_kext)" + local -x KEXT="$(modules_kext)" local n_copied_modules=0 for i in $(gen_dep_list) do - mymod=$(find . -name "${i}${MOD_EXT}" 2>/dev/null | head -n 1) + mymod=$(find . -name "${i}${KEXT}" 2>/dev/null | head -n 1) if [ -z "${mymod}" ] then - print_warning 3 "$(get_indent 3) - ${i}${MOD_EXT} not found; Skipping ..." + print_warning 3 "$(get_indent 3) - ${i}${KEXT} not found; Skipping ..." continue; fi - print_info 3 "$(get_indent 3) - Copying ${i}${MOD_EXT} ..." + print_info 3 "$(get_indent 3) - Copying ${i}${KEXT} ..." cp -ax --parents --target-directory "${modules_dstdir}" "${mymod}" 2>/dev/null \ || gen_die "Failed to copy '${modules_srcdir}/${mymod}' to '${modules_dstdir}'!" n_copied_modules=$[$n_copied_modules+1] |