ubuntu-image: fix focal+ pi images for armhf to use pi-armhf model name.

LP: #1876358
(cherry picked from commit 6e8b5b94c4a9f8db4afbaf566ebdb36110f08592)
This commit is contained in:
Dimitri John Ledkov 2020-05-01 19:50:41 +01:00
parent dc456c240d
commit 2d5f9581db

View File

@ -383,6 +383,9 @@ case $IMAGEFORMAT in
UBUNTU_IMAGE_ARGS="$UBUNTU_IMAGE_ARGS -c $CHANNEL"
;;
*)
if [ "${MODEL}" = "pi" ]; then
MODEL=pi-armhf
fi
# Ubuntu Core 20
# Currently uc20 assertions do not support global
# channel overrides, instead we have per-channel models