mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-07 08:51:50 +00:00
config: on hirsute build UC22 images
This commit is contained in:
parent
6df1c71416
commit
2f84bc9a84
@ -381,25 +381,30 @@ case $IMAGEFORMAT in
|
|||||||
UBUNTU_IMAGE_ARGS="$UBUNTU_IMAGE_ARGS -c $CHANNEL"
|
UBUNTU_IMAGE_ARGS="$UBUNTU_IMAGE_ARGS -c $CHANNEL"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
if [ "$SUITE" = "focal" ]; then
|
||||||
|
CORE_MAJOR=20
|
||||||
|
else
|
||||||
|
CORE_MAJOR=22
|
||||||
|
fi
|
||||||
if [ "${MODEL}" = "pi" ]; then
|
if [ "${MODEL}" = "pi" ]; then
|
||||||
MODEL=pi-armhf
|
MODEL=pi-armhf
|
||||||
fi
|
fi
|
||||||
# Ubuntu Core 20
|
# Ubuntu Core 2x
|
||||||
# Currently uc20 assertions do not support global
|
# Currently uc2x assertions do not support global
|
||||||
# channel overrides, instead we have per-channel models
|
# channel overrides, instead we have per-channel models
|
||||||
case $CHANNEL in
|
case $CHANNEL in
|
||||||
stable)
|
stable)
|
||||||
MODEL="ubuntu-core-20-${MODEL#pc-}"
|
MODEL="ubuntu-core-${CORE_MAJOR}-${MODEL#pc-}"
|
||||||
;;
|
;;
|
||||||
candidate|beta|edge|dangerous)
|
candidate|beta|edge|dangerous)
|
||||||
MODEL="ubuntu-core-20-${MODEL#pc-}-${CHANNEL}"
|
MODEL="ubuntu-core-${CORE_MAJOR}-${MODEL#pc-}-${CHANNEL}"
|
||||||
;;
|
;;
|
||||||
dangerous-*)
|
dangerous-*)
|
||||||
# That being said, the dangerous grade *does*
|
# That being said, the dangerous grade *does*
|
||||||
# support channel overrides, so we can use the
|
# support channel overrides, so we can use the
|
||||||
# dangerous model assertion and override the channel
|
# dangerous model assertion and override the channel
|
||||||
# freely.
|
# freely.
|
||||||
MODEL="ubuntu-core-20-${MODEL#pc-}-dangerous"
|
MODEL="ubuntu-core-${CORE_MAJOR}-${MODEL#pc-}-dangerous"
|
||||||
CHANNEL=${CHANNEL#dangerous-}
|
CHANNEL=${CHANNEL#dangerous-}
|
||||||
UBUNTU_IMAGE_ARGS="$UBUNTU_IMAGE_ARGS -c $CHANNEL"
|
UBUNTU_IMAGE_ARGS="$UBUNTU_IMAGE_ARGS -c $CHANNEL"
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user