new: support for building specific packages with mp-pool

This commit is contained in:
ngn
2024-08-15 21:59:35 +03:00
parent 3b0b5f2f5a
commit 2d828e0164
2 changed files with 37 additions and 20 deletions

View File

@ -115,7 +115,7 @@ EOF
popd > /dev/null
info "Syncing repositories"
matt sync --root "${target}" --yes
matt sync --root "${target}"
check_ret "matt command failed"
info "Installing base system packages"
@ -186,9 +186,11 @@ check_ret "Failed to run make-ca, install certs manually"
rm -f "${target}/certdata.txt"
info "Running install scripts"
matter-chroot "${target}" bash -c "bash /var/lib/matt/data/scripts/*" > /dev/null
echo 'bash /var/lib/matt/data/scripts/*' > "${target}/install_scripts"
matter-chroot "${target}" bash /install_scripts > /dev/null
check_ret "Failed to run install scripts"
rm -r "${target}/var/lib/matt/data/scripts"
rm "${target}/install_scripts"
info "Setup complete, now creating the archive..."
pushd "${target}" > /dev/null