Do it even better.

This commit is contained in:
Łukasz 'sil2100' Zemczak 2020-06-04 21:48:05 +02:00
parent 61eae75d5e
commit 037c4e4ac6

View File

@ -193,12 +193,10 @@ case $IMAGEFORMAT in
armhf+imx6)
MODEL=nitrogen6x ;;
# Handle appliance images
*+appliance_*)
*+appliance-*)
BRAND_ID="ubuntu"
COMPOSED="${SUBARCH#appliance_}"
APPLIANCE="${COMPOSED%_*}"
DEVICE="${COMPOSED#*_}"
MODEL="${APPLIANCE}-core18-${DEVICE}"
MODEL="${SUBARCH#appliance-}"
APPLIANCE=1
;;
*)
echo "Model $ARCH+${SUBARCH:-} unknown to livecd-rootfs" >&2