extensions: make handling of INSTALL_RECOMMENDS in APA more robust

This commit is contained in:
Rolf Leggewie
2025-08-16 21:00:39 +08:00
committed by Igor
parent 33d4b2c13b
commit e3dfa51165

View File

@@ -11,8 +11,8 @@ function custom_apt_repo__add_apa() {
function post_armbian_repo_customize_image__install_from_apa() { function post_armbian_repo_customize_image__install_from_apa() {
# do not install armbian recommends for minimal images # do not install armbian recommends for minimal images
[[ "${BUILD_MINIMAL,,}" =~ ^(true|yes)$ ]] && INSTALL_RECOMMENDS="no" || INSTALL_RECOMMENDS="yes" [[ "${BUILD_MINIMAL,,}" =~ ^(true|yes)$ ]] && INSTALL_RECOMMENDS="no-install-recommends" || INSTALL_RECOMMENDS="install-recommends"
chroot_sdcard_apt_get --install-recommends=$INSTALL_RECOMMENDS install "armbian-common armbian-bsp" chroot_sdcard_apt_get --$INSTALL_RECOMMENDS install "armbian-common armbian-bsp"
# install desktop environmnent if requested # install desktop environmnent if requested
case ${DESKTOP_ENVIRONMENT^^} in case ${DESKTOP_ENVIRONMENT^^} in