mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-07-26 08:11:30 +00:00
Imported using git-ubuntu import. Changelog parent: c9470d78b1f5a1d37001234373d905f5c627c264 New changelog entries: * ubunut-cpc: - extendend 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
Executable File
25 lines
565 B
Bash
Executable File
#!/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
|