Skip to content
Snippets Groups Projects

functions: copy all modules in one step with tar

1 unresolved thread
+ 5
2
@@ -500,7 +500,7 @@ add_module() {
found=1
module="${value##*/}" module="${module%.ko*}"
quiet "adding module: %s (%s)" "$module" "$value"
_modpaths["$value"]=1
_modpaths[".$value"]=1
_addedmodules["${module//-/_}"]=1
fi
;;
@@ -1007,8 +1007,9 @@ install_modules() {
return 0
fi
command tar -C / -cpf - "$@" | tar -C "${BUILDROOT}" -xpf -
for m in "$@"; do
add_file "$m" "$m" 644
# unzip modules prior to recompression
if [[ "$MODULES_DECOMPRESS" == 'yes' ]]; then
case "$m" in
@@ -1022,6 +1023,8 @@ install_modules() {
zst_comp+=("$BUILDROOT/$m")
;;
esac
else
break
fi
done
Loading