You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
livecd-rootfs/live-build/ubuntu-cpc/hooks/040-vmdk-image.binary

23 lines
623 B

#!/bin/bash -eux
# vi: ts=4 noexpandtab
#
# Generate VMDK files
architecture=$(chroot chroot dpkg --print-architecture)
extension="disk1.vmdk"
case ${architecture} in
i386) image_target="binary/boot/disk.ext4";;
amd64) image_target="binary/boot/disk-uefi.ext4"; extension="uefi1.vmdk";;
*) echo "VMDK images are not supported for ${architecture} yet.";
exit 0;;
esac
. /build/config/functions
create_vmdk binary/boot/disk.ext4 livecd.ubuntu-cpc.disk1.vmdk
if [ -e binary/boot/disk-uefi.ext4 ]; then
create_vmdk binary/boot/disk-uefi.ext4 livecd.ubuntu-cpc.uefi.vmdk
fi