mirror of
https://git.launchpad.net/livecd-rootfs
synced 2026-02-18 16:03:30 +00:00
Imported using git-ubuntu import. Changelog parent: eea56e02ae121482387ddc2206bc27de53f2627c New changelog entries: [ Balint Reczey ] * Source ubuntu-cpc functions from the right place * Use all config hooks from the proper place, not from /build/ * Add basic but configurable autopkgtest (LP: #1690440) * sync before calling kpartx to let writing to loop devices finish * wrap kpartx and trap spurious errors, to work around kpartx unreliability.
23 lines
481 B
Bash
Executable File
23 lines
481 B
Bash
Executable File
#!/bin/bash -eux
|
|
# vi: ts=4 expandtab
|
|
#
|
|
# Generate VMDK files
|
|
|
|
extension="disk1.vmdk"
|
|
|
|
case $ARCH in
|
|
i386|amd64) ;;
|
|
*) echo "VMDK images are not supported for $ARCH yet.";
|
|
exit 0;;
|
|
esac
|
|
|
|
. 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
|