livecd-rootfs/live-build/ubuntu-cpc/hooks/040-vmdk-image.binary
Steve Langasek 4109c1c2b3 Import patches-unapplied version 2.419 to ubuntu/yakkety-proposed
Imported using git-ubuntu import.

Changelog parent: eb0cb09a8d5c77853e7f9cba2b79270e12dc6a59

New changelog entries:
  [ Daniel Watkins ]
  * Consolidate cloud images
    - Remove .tar.gz and .tar.xz (removed in favour of the squashfs).
    - Remove the MBR-only disk image in favour of the shared GPT/MBR UEFI
      image.
    - Remove '-disk1' from bootable image names.
  [ Phil Roche ]
  * Removed HWCLOCKACCESS=no from /etc/default/rcS (LP: #1581044)
2016-06-28 23:54:13 +00:00

19 lines
451 B
Bash
Executable File

#!/bin/bash -eux
# vi: ts=4 expandtab
#
# Generate VMDK files
case $ARCH in
i386|amd64) ;;
*) echo "VMDK images are not supported for $ARCH yet.";
exit 0;;
esac
. /build/config/functions
if [ -e binary/boot/disk-uefi.ext4 ]; then
create_vmdk binary/boot/disk-uefi.ext4 livecd.ubuntu-cpc.vmdk
elif [ -f binary/boot/disk.ext4 ]; then
create_vmdk binary/boot/disk.ext4 livecd.ubuntu-cpc.vmdk
fi