move configuration bits into live-build/auto/config from live-build/auto/build, per Adam

ubuntu/cosmic
Steve Langasek 7 years ago
parent 696ae6e1eb
commit 02246dbf84

@ -21,19 +21,8 @@ PREFIX="livecd.$PROJECT${SUBARCH:+-$SUBARCH}"
if [ "${IMAGEFORMAT:-}" = "ubuntu-image" ]; then
# Use ubuntu-image instead of live-build
# this should actually be per-model instead of per-architecture,
# but for the moment all our x86 models follow this rule.
case $ARCH in
amd64|i386)
extra_args="--image-size 3700M"
;;
*)
extra_args=""
;;
esac
env SNAPPY_STORE_NO_CDN=1 \
ubuntu-image -c edge $extra_args \
ubuntu-image -c edge $UBUNTU_IMAGE_ARGS \
-o livecd."$PROJECT".img livecd."$PROJECT".model-assertion
xz -0 -T4 livecd."$PROJECT".img
mv seed.manifest "PREFIX".manifest

@ -171,7 +171,15 @@ case $IMAGEFORMAT in
exit 1
;;
esac
case $MODEL in
pc-amd64|pc-i386)
UBUNTU_IMAGE_ARGS="--image-size 3700M" ;;
*)
UBUNTU_IMAGE_ARGS="" ;;
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 > livecd."$PROJECT".model-assertion
echo "Configured ubuntu-image for the following model assertion:"

Loading…
Cancel
Save