mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-25 12:21:10 +00:00
Imported using git-ubuntu import. Changelog parent: f27686011453985e8a1dca45c42fea9b297b56e6 New changelog entries: * ubuntu-cpc: When performing a minimized build, don't generate artifacts that won't boot with the linux-kvm kernel (LP: #1757223).
37 lines
710 B
Bash
Executable File
37 lines
710 B
Bash
Executable File
#!/bin/bash -eux
|
|
# vi: ts=4 expandtab
|
|
#
|
|
# Generate VMDK files
|
|
|
|
case ${SUBPROJECT:-} in
|
|
minimized)
|
|
echo "Skipping minimized $0 build as images won't boot with linux-kvm"
|
|
exit 0
|
|
;;
|
|
*)
|
|
;;
|
|
esac
|
|
|
|
case $ARCH in
|
|
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
|