|
|
|
@ -23,12 +23,31 @@ PREFIX="livecd.$PROJECT${SUBARCH:+-$SUBARCH}"
|
|
|
|
|
if [ "${IMAGEFORMAT:-}" = "ubuntu-image" ]; then
|
|
|
|
|
# Use ubuntu-image instead of live-build
|
|
|
|
|
|
|
|
|
|
if [ "$PROJECT" = "ubuntu-core"]; then
|
|
|
|
|
CHANNEL="${CHANNEL:-edge}"
|
|
|
|
|
env SNAPPY_STORE_NO_CDN=1 \
|
|
|
|
|
ubuntu-image -c "$CHANNEL" $UBUNTU_IMAGE_ARGS \
|
|
|
|
|
-o "$PREFIX".img "$PREFIX".model-assertion
|
|
|
|
|
ubuntu-image snap -c "$CHANNEL" $UBUNTU_IMAGE_ARGS \
|
|
|
|
|
-O output "$PREFIX".model-assertion
|
|
|
|
|
# XXX: currently we only have one image generated, but really
|
|
|
|
|
# we should be supporting more than one for models that
|
|
|
|
|
# define those.
|
|
|
|
|
mv output/*.img "$PREFIX".img
|
|
|
|
|
xz -0 -T4 "$PREFIX".img
|
|
|
|
|
mv seed.manifest "$PREFIX".manifest
|
|
|
|
|
mv output/seed.manifest "$PREFIX".manifest
|
|
|
|
|
else
|
|
|
|
|
# First we need to build the gadget tree
|
|
|
|
|
make -C "config/$PREFIX-gadget"
|
|
|
|
|
ubuntu-image classic $UBUNTU_IMAGE_ARGS \
|
|
|
|
|
-p $PROJECT -a $ARCH --subarch $SUBARCH \
|
|
|
|
|
-O output config/$PREFIX-gadget/install
|
|
|
|
|
# XXX: currently we only have one image generated, but really
|
|
|
|
|
# we should be supporting more than one for models that
|
|
|
|
|
# define those.
|
|
|
|
|
mv output/*.img "$PREFIX".img
|
|
|
|
|
xz -0 -T4 "$PREFIX".img
|
|
|
|
|
mv output/filesystem.manifest "$PREFIX".manifest
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|