mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
* always use http for apt repos * pass possible proxy arguments to docker * populate lower-case env variables with upper-case ones if not set otherwise
24 lines
1.0 KiB
Bash
24 lines
1.0 KiB
Bash
# Install armbian-common etc. from APA
|
|
|
|
function extension_prepare_config__apa() {
|
|
display_alert "Target image will have Armbian Package Archive (APA) enabled by default" "${EXTENSION}" "info"
|
|
}
|
|
|
|
function custom_apt_repo__add_apa() {
|
|
run_host_command_logged echo "deb [signed-by=${APT_SIGNING_KEY_FILE}] http://github.armbian.com/apa current main" "|" tee "${SDCARD}"/etc/apt/sources.list.d/armbian-apa.list
|
|
}
|
|
|
|
function post_armbian_repo_customize_image__install_from_apa() {
|
|
# do not install armbian recommends for minimal images
|
|
[[ "${BUILD_MINIMAL,,}" =~ ^(true|yes)$ ]] && INSTALL_RECOMMENDS="no" || INSTALL_RECOMMENDS="yes"
|
|
chroot_sdcard_apt_get --install-recommends=$INSTALL_RECOMMENDS install "armbian-common armbian-bsp"
|
|
|
|
# install desktop environmnent if requested
|
|
case ${DESKTOP_ENVIRONMENT^^} in
|
|
XFCE|KDE|GNOME)
|
|
display_alert "installing ${DESKTOP_ENVIRONMENT^^} desktop environment" "${EXTENSION}: ${DESKTOP_ENVIRONMENT^^}" "info"
|
|
chroot_sdcard_apt_get --install-recommends=yes "armbian-desktop-${DESKTOP_ENVIRONMENT,,}"
|
|
;;
|
|
esac
|
|
}
|