build_image_util: Speed up build_image with FEATURES="-merge-wait"

I see a 25% improvement. `man make.conf` says that this can potentially
result in build failures, but it seems unlikely when merely installing
binary packages. I haven't had any issues after several local builds.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
This commit is contained in:
James Le Cuirot 2026-04-08 11:01:28 +01:00
parent 874ed2576d
commit 6fe8ad89cc
No known key found for this signature in database
GPG Key ID: 1226415D00DD3137

View File

@ -150,7 +150,7 @@ emerge_to_image() {
fi
sudo -E ROOT="${root_fs_dir}" \
FEATURES="-ebuild-locks" \
FEATURES="-ebuild-locks -merge-wait" \
PORTAGE_CONFIGROOT="${BUILD_DIR}"/configroot \
emerge --usepkgonly --jobs="${NUM_JOBS}" --verbose "$@"