mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-25 04:11:14 +00:00
Imported using git-ubuntu import. Changelog parent: 2ac1eda867ebc37261e396efe1ac1c6ed38a28cf New changelog entries: [ Balint Reczey ] * Add a basic but configurable autopkgtest. [ Mathieu Trudel-Lapierre ] * Add ubuntu-server:live for a subiquity-based server image. * Refactor functions out of ubuntu-cpc and ubuntu-server hooks.
28 lines
547 B
Bash
Executable File
28 lines
547 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
|
|
|
|
case ${IMAGE_TARGETS:-} in
|
|
""|*vmdk*)
|
|
;;
|
|
*)
|
|
echo "Skipping VMDK image build"
|
|
exit 0
|
|
;;
|
|
esac
|
|
|
|
. 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
|