The following patch will eliminate the "(builtin)" warning:
--- /usr/lib/initcpio/functions 2020-03-07 06:59:19.000000000 +0100
+++ /usr/lib/initcpio/functions 2020-03-25 21:45:04.723045624 +0100
@@ -779,7 +779,7 @@
return 0
fi
- cp "$@" "$moduledest/kernel"
+ cp ${@//\(builtin\)} "$moduledest/kernel" #no quotes around the array!
# unzip modules prior to recompression
for m in "$@"; do
I just rebooted from the fallback image thus created. This should always work, AFAIK kernel modules never have spaces in their names, but I'm not actually proposing this patch - it's as ugly as the rest of the code. The script should be rewritten.
Slightly less ugly:
--- functions 2020-03-03 23:26:38.530530666 +0100
+++ functions 2020-03-25 22:19:32.358410996 +0100
@@ -769,7 +769,7 @@
}
install_modules() {
- local m moduledest=$BUILDROOT/lib/modules/$KERNELVERSION
+ local m n moduledest=$BUILDROOT/lib/modules/$KERNELVERSION
local -a xz_comp gz_comp
[[ $KERNELVERSION == none ]] && return 0
@@ -779,7 +779,10 @@
return 0
fi
- cp "$@" "$moduledest/kernel"
+ for n in "$@"; do
+ [[ "$n" == '(builtin)' ]] && continue
+ cp "$n" "$moduledest/kernel"
+ done
# unzip modules prior to recompression
for m in "$@"; do
The mkinitcpio PKGBUILD needs makedepends=(asciidoc) added.