ubuntu: for the stable image, use the stable model

Let's stop leaning on overrides for now.

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
This commit is contained in:
Olivier Gayot 2026-02-09 16:41:39 +01:00
parent e26de340e2
commit 733ad14e33
2 changed files with 20 additions and 18 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
livecd-rootfs (26.04.17) UNRELEASED; urgency=medium
* desktop: build the stable ISO using the stable model - essentially
reverting all the hacks.
-- Olivier Gayot <olivier.gayot@canonical.com> Thu, 12 Feb 2026 10:20:52 +0100
livecd-rootfs (26.04.16) resolute; urgency=medium
* Rename ISO_STATUS to BUILD_TYPE for image builds.

View File

@ -148,31 +148,26 @@ if [ "$SUBPROJECT" = "dangerous" ]; then
components+=("$comp")
done
else
# Normally we use the stable model here. Use the dangerous one for now
# until we get snaps on stable 26.04 tracks and channels.
#model="${stable_model}"
model="${dangerous_model}"
# We're currently using the dangerous model for the stable image because it
# allows us to override snaps. But we don't want all snaps from edge like
# the dangerous model has, we want most of them from stable excluding:
# * snapd-desktop-integration (for TPM/FDE)
# * firmware-updater (for TPM/FDE)
# * desktop-security-center (for TPM/FDE)
snaps_from_dangerous=(snapd-desktop-integration firmware-updater desktop-security-center)
model="${stable_model}"
# If we need to override anything from the model, we need grade: dangerous.
# And if so, uncomment the below to use the dangerous model and set the
# snaps_from_dangerous and snaps_from_beta variables to still use snaps
# from the stable model.
#model="${dangerous_model}"
snaps_from_dangerous=()
# For these snaps, we ignore the model entirely.
snaps_from_beta=(snapd)
snaps_from_beta=()
for snap in "${snaps_from_beta[@]}"; do
prepare_args+=("--snap=$snap=beta")
done
# snaps that we are special casing.
_exclude=("${snaps_from_dangerous[@]}" "${snaps_from_beta[@]}")
for snap_arg in $(get_snaps_args_excluding "$stable_model" "${_exclude[@]}"); do
prepare_args+=("$snap_arg")
done
if [ "$model" = "$dangerous_model" ]; then
for snap_arg in $(get_snaps_args_excluding "$stable_model" "${_exclude[@]}"); do
prepare_args+=("$snap_arg")
done
fi
for comp in $(get_components_excluding "$stable_model" "${_exclude[@]}"); do
components+=("$comp")
done