aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2021-07-06 00:19:47 +0200
committerThomas Deutschmann <whissi@gentoo.org>2021-07-06 01:40:51 +0200
commite7f7d6a7126ecec0bc7a62dd45cb140fa1e8684e (patch)
tree129219a93c216aaea6740f5aefe7819c20c192da
parentgen_moddeps.sh: modules_kext(): Add ZSTD support for kernel modules (diff)
downloadgenkernel-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-xgen_initramfs.sh8
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]