Merge pull request #4860 from amazingfate/chroot-apt-install

use chroot_sdcard_apt_get_install for packages
This commit is contained in:
Jianfeng Liu 2023-02-24 19:26:34 +08:00 committed by GitHub
commit ec807c7b30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,5 @@
#!/usr/bin/env bash
function create_new_rootfs_cache_tarball() {
# validate cache_fname is set
[[ -n "${cache_fname}" ]] || exit_with_error "create_new_rootfs_cache_tarball: cache_fname is not set"
@ -175,7 +177,7 @@ function create_new_rootfs_cache_via_debootstrap() {
# Then do the actual install.
export if_error_detail_message="Installation of Armbian desktop packages for ${RELEASE} ${DESKTOP_APPGROUPS_SELECTED} ${DESKTOP_ENVIRONMENT} ${BUILD_MINIMAL} failed"
chroot_sdcard_apt_get install "${AGGREGATED_PACKAGES_DESKTOP[@]}"
chroot_sdcard_apt_get_install "${AGGREGATED_PACKAGES_DESKTOP[@]}"
fi
# stage: check md5 sum of installed packages. Just in case. @TODO: rpardini: this should also be done when a cache is used, not only when it is created