diff --git a/debian/changelog b/debian/changelog index 090176b1..9737fce5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +livecd-rootfs (2.370) UNRELEASED; urgency=medium + + * Produce OVA files for i386 cloud builds. + + -- Daniel Watkins Wed, 13 Jan 2016 11:43:54 +0000 + livecd-rootfs (2.369) xenial; urgency=medium [ Ɓukasz 'sil2100' Zemczak ] diff --git a/live-build/ubuntu-cpc/hooks/041-vmdk-ova-image.binary b/live-build/ubuntu-cpc/hooks/041-vmdk-ova-image.binary index 84134c42..4123a501 100755 --- a/live-build/ubuntu-cpc/hooks/041-vmdk-ova-image.binary +++ b/live-build/ubuntu-cpc/hooks/041-vmdk-ova-image.binary @@ -9,20 +9,23 @@ # # For this step, we re-use the VMDK's made in 040-vmdk-image.binary -cur_d=${PWD} -my_d=$(dirname $(readlink -f ${0})) - architecture=$(chroot chroot dpkg --print-architecture) -base_vmdk="livecd.ubuntu-cpc.disk1.vmdk" case ${architecture} in - amd64) base_vmdk="livecd.ubuntu-cpc.uefi.vmdk";; - *) echo "OVA images are not supported for ${architecture} yet."; - exit 0;; + amd64|i386) ;; + *) echo "OVA images are not supported for ${architecture} yet."; + exit 0;; esac +cur_d=${PWD} +my_d=$(dirname $(readlink -f ${0})) + +base_vmdk="livecd.ubuntu-cpc.disk1.vmdk" +if [ $architecture = "amd64" ]; then + base_vmdk="livecd.ubuntu-cpc.uefi.vmdk" +fi if [ ! -e ${base_vmdk} ]; then - find . | grep vmdk + find . | grep vmdk exit 0 fi