mirror of
https://git.launchpad.net/livecd-rootfs
synced 2026-02-18 07:53:29 +00:00
Imported using git-ubuntu import.
Changelog parent: 4c3694d4a2b50dd2faa9ee66575645d5b3315179
New changelog entries:
* Sort and list dependencies nicely
* Depend on packages instead of installing them at run time
* Use xz -T4 instead of pxz.
Supported xz versions before 5.2 accept the -T4 option but ignore it.
Also depend on xz-utils instead of downloading pxz. (LP: #1701132)
22 lines
544 B
Bash
Executable File
22 lines
544 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.ext4 ]; then
|
|
convert_to_qcow2 binary/boot/disk.ext4 livecd.ubuntu-cpc.disk1.img
|
|
fi
|
|
|
|
if [ -f binary/boot/disk-uefi.ext4 ]; then
|
|
convert_to_qcow2 binary/boot/disk-uefi.ext4 livecd.ubuntu-cpc.uefi1.img
|
|
fi
|