From ea8564afe2dd1d2a5b195ac7eb0ea27f5c6f0b15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Minier?= Date: Wed, 28 Jun 2023 09:26:29 +0000 Subject: [PATCH] Add channel override for ubuntu-image channel --- live-build/auto/build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/live-build/auto/build b/live-build/auto/build index 5232a38b..b4df7ca5 100755 --- a/live-build/auto/build +++ b/live-build/auto/build @@ -90,7 +90,9 @@ if [ "${IMAGEFORMAT:-}" = "ubuntu-image" ]; then # Use ubuntu-image instead of live-build export SNAPPY_STORE_NO_CDN=1 - snap install --classic ubuntu-image + LB_UBUNTU_IMAGE_CHANNEL="${LB_UBUNTU_IMAGE_CHANNEL:-stable}" + snap install \ + --classic --channel="$LB_UBUNTU_IMAGE_CHANNEL" ubuntu-image # TODO: eventually, this should be handled by a single ubuntu-image # call without having to do a conditional on ubuntu-core/classic.