mirror of
https://git.launchpad.net/livecd-rootfs
synced 2026-02-18 16:03:30 +00:00
Imported using git-ubuntu import.
Changelog parent: 9ac850741cb5c111949cb40b971436c3524d495d
New changelog entries:
* Move building of all architecture-specific CPC artifacts into Launchpad
(LP: #1513754).
17 lines
392 B
Bash
Executable File
17 lines
392 B
Bash
Executable File
#!/bin/bash -ex
|
|
|
|
apt-get install -qqy qemu-utils
|
|
|
|
convert_image() {
|
|
src="$1"
|
|
destination="$2"
|
|
qemu-img convert -c -O qcow2 -o compat=0.10 "$src" "$destination"
|
|
qemu-img info "$destination"
|
|
}
|
|
|
|
convert_image binary/boot/disk.ext4 livecd.ubuntu-cpc.disk1.img
|
|
|
|
if [ -f binary/boot/disk-uefi.ext4 ]; then
|
|
convert_image binary/boot/disk-uefi.ext4 livecd.ubuntu-cpc.uefi1.img
|
|
fi
|