Enable overrides of UC20 grade dangerous channels

This commit is contained in:
Łukasz 'sil2100' Zemczak 2020-05-25 18:44:08 +02:00
parent 60665a434b
commit 40103430d8
2 changed files with 16 additions and 0 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
livecd-rootfs (2.668) UNRELEASED; urgency=medium
* Enable overrides of UC20 grade dangerous channels - as this is possible.
(LP: #1879350)
-- Łukasz 'sil2100' Zemczak <lukasz.zemczak@ubuntu.com> Mon, 25 May 2020 16:40:27 +0200
livecd-rootfs (2.667) groovy; urgency=medium
* Revert of initramfs package removal in KVM image

View File

@ -396,6 +396,15 @@ case $IMAGEFORMAT in
candidate|beta|edge|dangerous)
MODEL="ubuntu-core-20-${MODEL#pc-}-${CHANNEL}"
;;
dangerous-*)
# That being said, the dangerous grade *does*
# support channel overrides, so we can use the
# dangerous model assertion and override the channel
# freely.
MODEL="ubuntu-core-20-${MODEL#pc-}-dangerous"
CHANNEL=${CHANNEL#dangerous-}
UBUNTU_IMAGE_ARGS="$UBUNTU_IMAGE_ARGS -c $CHANNEL"
;;
*)
echo "Unknown CHANNEL ${CHANNEL} specification for ${SUITE}"
exit 1