mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-10 04:37:29 +00:00
This patch currently only applies to the "ubuntu-cpc" project. More and more logic has been going into the hook scripts to decide under which conditions they should run or not. As we are moving to parallelized builds of image sets, this will get even more complicated. Base hooks will have to know which image sets they belong to and modification of the dependency chain between scripts will become more complicated and prone to errors, as the number of image sets grows. This patch introduces explicit ordering and dependency handling for scripts through the use of `series` files and an explicit syntax for dependency specification.
19 lines
529 B
Bash
Executable File
19 lines
529 B
Bash
Executable File
#!/bin/bash -ex
|
|
|
|
case $ARCH:$SUBARCH in
|
|
# Not sure if any other cloud images use subarch for something that
|
|
# should take qcow2 format, so only skipping this on raspi2 for now.
|
|
armhf:raspi2)
|
|
xz -T4 -c binary/boot/disk.ext4 > livecd.ubuntu-cpc.disk1.img.xz
|
|
exit 0
|
|
;;
|
|
esac
|
|
|
|
. config/functions
|
|
|
|
if [ -f binary/boot/disk-uefi.ext4 ]; then
|
|
convert_to_qcow2 binary/boot/disk-uefi.ext4 livecd.ubuntu-cpc.img
|
|
elif [ -f binary/boot/disk.ext4 ]; then
|
|
convert_to_qcow2 binary/boot/disk.ext4 livecd.ubuntu-cpc.img
|
|
fi
|