|
|
@ -96,6 +96,7 @@ LIVE_TASK=
|
|
|
|
PREINSTALLED=false
|
|
|
|
PREINSTALLED=false
|
|
|
|
PREINSTALL_POOL=
|
|
|
|
PREINSTALL_POOL=
|
|
|
|
PREINSTALL_POOL_SEEDS=
|
|
|
|
PREINSTALL_POOL_SEEDS=
|
|
|
|
|
|
|
|
PREFIX="livecd.$PROJECT${SUBARCH:+-$SUBARCH}"
|
|
|
|
|
|
|
|
|
|
|
|
CHROOT_HOOKS=
|
|
|
|
CHROOT_HOOKS=
|
|
|
|
BINARY_HOOKS=
|
|
|
|
BINARY_HOOKS=
|
|
|
@ -144,6 +145,53 @@ case $IMAGEFORMAT in
|
|
|
|
PREINSTALLED=true
|
|
|
|
PREINSTALLED=true
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ubuntu-image)
|
|
|
|
|
|
|
|
case "$ARCH+${SUBARCH:-}" in
|
|
|
|
|
|
|
|
amd64+*)
|
|
|
|
|
|
|
|
MODEL=pc-amd64 ;;
|
|
|
|
|
|
|
|
i386+*)
|
|
|
|
|
|
|
|
MODEL=pc-i386 ;;
|
|
|
|
|
|
|
|
arm64+snapdragon)
|
|
|
|
|
|
|
|
MODEL=dragonboard ;;
|
|
|
|
|
|
|
|
armhf+raspi2)
|
|
|
|
|
|
|
|
MODEL=pi2 ;;
|
|
|
|
|
|
|
|
armhf+raspi3)
|
|
|
|
|
|
|
|
MODEL=pi3 ;;
|
|
|
|
|
|
|
|
armhf+cm3)
|
|
|
|
|
|
|
|
MODEL=cm3 ;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
|
|
|
|
echo "Model $ARCH+${SUBARCH:-} unknown to livecd-rootfs" >&2
|
|
|
|
|
|
|
|
exit 1
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
case $MODEL in
|
|
|
|
|
|
|
|
pc-amd64|pc-i386)
|
|
|
|
|
|
|
|
UBUNTU_IMAGE_ARGS="--image-size 3700M" ;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
|
|
|
|
UBUNTU_IMAGE_ARGS="" ;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
case $SUITE in
|
|
|
|
|
|
|
|
xenial)
|
|
|
|
|
|
|
|
# Ubuntu Core 16
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
*)
|
|
|
|
|
|
|
|
# Ubuntu Core 18
|
|
|
|
|
|
|
|
MODEL="ubuntu-core-18-${MODEL#pc-}" ;;
|
|
|
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "IMAGEFORMAT=$IMAGEFORMAT" >> config/common
|
|
|
|
|
|
|
|
echo "UBUNTU_IMAGE_ARGS=\"$UBUNTU_IMAGE_ARGS\"" >> config/common
|
|
|
|
|
|
|
|
# Store model assertion in top dir to get it picked up later as a build artifact
|
|
|
|
|
|
|
|
env SNAPPY_STORE_NO_CDN=1 snap known --remote model series=16 model="$MODEL" brand-id=canonical > "$PREFIX".model-assertion
|
|
|
|
|
|
|
|
echo "Configured ubuntu-image for the following model assertion:"
|
|
|
|
|
|
|
|
cat "$PREFIX".model-assertion
|
|
|
|
|
|
|
|
echo "----------------------------------------------------------"
|
|
|
|
|
|
|
|
# Fake finished configuration for lb build
|
|
|
|
|
|
|
|
mkdir -p .build
|
|
|
|
|
|
|
|
touch .build/config
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
|
|
none)
|
|
|
|
none)
|
|
|
|
OPTS="${OPTS:+$OPTS }--chroot-filesystem $IMAGEFORMAT"
|
|
|
|
OPTS="${OPTS:+$OPTS }--chroot-filesystem $IMAGEFORMAT"
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|