2015-11-06 09:54:59 +00:00
|
|
|
#!/bin/bash -ex
|
|
|
|
|
2016-02-10 23:51:54 -08:00
|
|
|
case $ARCH:$SUBARCH in
|
|
|
|
# Not sure if any other cloud images use subarch for something that
|
|
|
|
# should take qcow2 format, so only skipping this on raspi2 for now.
|
|
|
|
armhf:raspi2)
|
2017-12-05 22:40:35 +01:00
|
|
|
xz -T4 -c binary/boot/disk.ext4 > livecd.ubuntu-cpc.disk1.img.xz
|
2016-02-10 23:51:54 -08:00
|
|
|
exit 0
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2015-11-06 09:54:59 +00:00
|
|
|
|
2017-05-12 21:20:22 +02:00
|
|
|
. config/functions
|
2015-11-06 09:54:59 +00:00
|
|
|
|
2015-12-07 11:47:18 -07:00
|
|
|
if [ -f binary/boot/disk.ext4 ]; then
|
|
|
|
convert_to_qcow2 binary/boot/disk.ext4 livecd.ubuntu-cpc.disk1.img
|
|
|
|
fi
|
2015-11-06 09:54:59 +00:00
|
|
|
|
|
|
|
if [ -f binary/boot/disk-uefi.ext4 ]; then
|
2015-12-07 11:47:18 -07:00
|
|
|
convert_to_qcow2 binary/boot/disk-uefi.ext4 livecd.ubuntu-cpc.uefi1.img
|
2015-11-06 09:54:59 +00:00
|
|
|
fi
|