mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-03-10 02:41:15 +00:00
* ubunutu-cpc: - extended hooks/functions to support creation of derivative images including mounting images. - added the ability to create qcow2 images in hooks/functions - simplified loop clean-up in hooks/functions - removed assumption that disk1.img would be built - switched qcow2 generation to use hooks/functions function
25 lines
565 B
Bash
25 lines
565 B
Bash
#!/bin/bash -eux
|
|
# vi: ts=4 expandtab
|
|
#
|
|
# Generate VMDK files
|
|
|
|
architecture=$(chroot chroot dpkg --print-architecture)
|
|
|
|
extension="disk1.vmdk"
|
|
|
|
case ${architecture} in
|
|
i386|amd64) ;;
|
|
*) echo "VMDK images are not supported for ${architecture} yet.";
|
|
exit 0;;
|
|
esac
|
|
|
|
. /build/config/functions
|
|
|
|
if [ -e binary/boot/disk.ext4 ]; then
|
|
create_vmdk binary/boot/disk.ext4 livecd.ubuntu-cpc.disk1.vmdk
|
|
fi
|
|
|
|
if [ -e binary/boot/disk-uefi.ext4 ]; then
|
|
create_vmdk binary/boot/disk-uefi.ext4 livecd.ubuntu-cpc.uefi.vmdk
|
|
fi
|