livecd-rootfs/live-build/ubuntu-cpc/hooks/040-qcow2-image.binary
Ben Howard 421269a732 ubuntu-cpc: clean up qcow2 image builds
- use convert_to_qcow2 to create the qcow2
- remove assumption of disk1.img existing
2015-12-07 11:47:18 -07:00

14 lines
312 B
Bash
Executable File

#!/bin/bash -ex
apt-get install -qqy qemu-utils
. /build/config/functions
if [ -f binary/boot/disk.ext4 ]; then
convert_to_qcow2 binary/boot/disk.ext4 livecd.ubuntu-cpc.disk1.img
fi
if [ -f binary/boot/disk-uefi.ext4 ]; then
convert_to_qcow2 binary/boot/disk-uefi.ext4 livecd.ubuntu-cpc.uefi1.img
fi