28 lines
607 B
28 lines
607 B
9 years ago
|
#!/bin/bash -eux
|
||
|
# vi: ts=4 expandtab
|
||
|
#
|
||
|
# Generate VMDK files
|
||
|
|
||
7 years ago
|
case ${SUBPROJECT:-} in
|
||
|
minimized)
|
||
|
echo "Skipping minimized $0 build as images won't boot with linux-kvm"
|
||
|
exit 0
|
||
|
;;
|
||
|
*)
|
||
|
;;
|
||
|
esac
|
||
|
|
||
9 years ago
|
case $ARCH in
|
||
7 years ago
|
amd64) ;;
|
||
9 years ago
|
*) echo "VMDK images are not supported for $ARCH yet.";
|
||
9 years ago
|
exit 0;;
|
||
9 years ago
|
esac
|
||
|
|
||
8 years ago
|
. config/functions
|
||
9 years ago
|
|
||
|
if [ -e binary/boot/disk-uefi.ext4 ]; then
|
||
9 years ago
|
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
|
||
9 years ago
|
fi
|