Skip to content

Commit 5328746

Browse files
committed
APA bootstrapping
1 parent 6aa7828 commit 5328746

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

lib/functions/main/config-prepare.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

lib/functions/rootfs/rootfs-create.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)