|
|
@ -6,16 +6,18 @@
|
|
|
|
architecture=$(chroot chroot dpkg --print-architecture)
|
|
|
|
architecture=$(chroot chroot dpkg --print-architecture)
|
|
|
|
|
|
|
|
|
|
|
|
extension="disk1.vmdk"
|
|
|
|
extension="disk1.vmdk"
|
|
|
|
|
|
|
|
|
|
|
|
case ${architecture} in
|
|
|
|
case ${architecture} in
|
|
|
|
i386) image_target="binary/boot/disk.ext4";;
|
|
|
|
i386|amd64) ;;
|
|
|
|
amd64) image_target="binary/boot/disk-uefi.ext4"; extension="uefi1.vmdk";;
|
|
|
|
|
|
|
|
*) echo "VMDK images are not supported for ${architecture} yet.";
|
|
|
|
*) echo "VMDK images are not supported for ${architecture} yet.";
|
|
|
|
exit 0;;
|
|
|
|
exit 0;;
|
|
|
|
esac
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
. /build/config/functions
|
|
|
|
. /build/config/functions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ -e binary/boot/disk.ext4 ]; then
|
|
|
|
create_vmdk binary/boot/disk.ext4 livecd.ubuntu-cpc.disk1.vmdk
|
|
|
|
create_vmdk binary/boot/disk.ext4 livecd.ubuntu-cpc.disk1.vmdk
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ -e binary/boot/disk-uefi.ext4 ]; then
|
|
|
|
if [ -e binary/boot/disk-uefi.ext4 ]; then
|
|
|
|
create_vmdk binary/boot/disk-uefi.ext4 livecd.ubuntu-cpc.uefi.vmdk
|
|
|
|
create_vmdk binary/boot/disk-uefi.ext4 livecd.ubuntu-cpc.uefi.vmdk
|
|
|
|