build_sysext: Ensure sysexts are entirely built from binary packages

It is no longer necessary to build the meta packages from source as they
are now covered by build_packages.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
This commit is contained in:
James Le Cuirot 2026-02-04 15:03:38 +00:00
parent 5d48557f79
commit 0cbf8dedb5
No known key found for this signature in database
GPG Key ID: 1226415D00DD3137

View File

@ -22,7 +22,7 @@ default_install_root_basename='install-root'
DEFINE_string board "${DEFAULT_BOARD}" \
"The board to build a sysext for."
DEFINE_string metapkgs '' \
"Comma-separated list of meta-packages to build from source and install into sysext image."
"Comma-separated list of binary meta-packages to install into the sysext image."
DEFINE_string squashfs_base '' \
"The path to the squashfs base image. Defaults to the most current image built in '${default_imagedir}/${FLATCAR_PRODUCTION_IMAGE_SYSEXT_BASE}'."
DEFINE_string image_builddir '' \
@ -206,9 +206,9 @@ if [ "$VERSION_BOARD" != "$FLATCAR_VERSION" ]; then
fi
if [[ -n "${FLAGS_metapkgs}" ]]; then
mapfile -t metapkgs < <(tr ',' '\n' <<<"${FLAGS_metapkgs}")
"emerge-${FLAGS_board}" --nodeps --buildpkgonly --usepkg n --verbose "${metapkgs[@]}"
set -- "${metapkgs[@]}" "${@}"
IFS=,
set -- ${FLAGS_metapkgs} "${@}"
unset IFS
fi
if [[ ${#} -lt 1 ]]; then