File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -358,7 +358,7 @@ function check_config_userspace_release_and_desktop() {
358358 fi
359359
360360 # Desktop sanity checks, in the same vein.
361- if [[ " ${DESKTOP_ENVIRONMENT} " != " " ]]; then
361+ if [[ " ${DESKTOP_ENVIRONMENT} " != " " && ! $APA_IS_ACTIVE ]]; then
362362
363363 # If DESKTOP_ENVIRONMENT is set, but BUILD_DESKTOP is not, then we have a problem.
364364 if [[ " ${BUILD_DESKTOP} " != " yes" ]]; then
Original file line number Diff line number Diff line change @@ -156,9 +156,19 @@ function create_new_rootfs_cache_via_debootstrap() {
156156 declare -ga debootstrap_arguments=(
157157 " --variant=minbase" # minimal base variant. go ask Debian about it.
158158 " --arch=${ARCH} " # the arch
159- " '--include=${AGGREGATED_PACKAGES_DEBOOTSTRAP_COMMA} '" # from aggregation.py
160- " '--components=${AGGREGATED_DEBOOTSTRAP_COMPONENTS_COMMA} '" # from aggregation.py
161159 )
160+ if [[ ! -z " ${AGGREGATED_PACKAGES_DEBOOTSTRAP_COMMA} " ]]; then
161+ # from aggregation.py
162+ debootstrap_arguments+=(" '--include=${AGGREGATED_PACKAGES_DEBOOTSTRAP_COMMA} '" )
163+ else
164+ # FIXME: push the locales-gen stuff into extensions/apa.sh ?
165+ # if apt isn't part of minbase, the above feels like the wrong solution.
166+ debootstrap_arguments+=(" '--include=locales,apt'" )
167+ fi
168+ if [[ ! -z " ${AGGREGATED_DEBOOTSTRAP_COMPONENTS_COMMA} " ]]; then
169+ # from aggregation.py
170+ debootstrap_arguments+=(" '--components=${AGGREGATED_DEBOOTSTRAP_COMPONENTS_COMMA} '" )
171+ fi
162172 if [[ " ${LEGACY_DEBOOTSTRAP,,} " == " no" ]]; then
163173 debootstrap_arguments+=(" '--skip=check/empty'" ) # skips check if the rootfs dir is empty at start
164174 fetch_distro_keyring " $RELEASE "
You can’t perform that action at this time.
0 commit comments