mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-25 04:11:14 +00:00
Imported using git-ubuntu import. Changelog parent: 402cae06bddf73fb13deae1a24a5b7ac1ae7740a New changelog entries: [ Balint Reczey ] * Depend on packages in main instead of installing them at runtime * Depend on vmdk-stream-converter instead of installing it at run time * Use xz -T4 -0 instead of pxz (LP: #1701132) Supported xz versions before 5.2 also accept the -T4 option but ignore it. * Depend on xz-utils instead of pxz [ Mathieu Trudel-Lapierre ] * auto/config: enable Debug::pkgDepCache::AutoInstall so tracking down dependency bugs in the livefs is a little clearer. [ Robert C Jennings ] * live-build/functions: Update path for VMDKstream.py (LP: #1706116)
28 lines
633 B
Bash
Executable File
28 lines
633 B
Bash
Executable File
#!/bin/bash -ex
|
|
|
|
case $IMAGE_TARGETS in
|
|
""|*qcow2*)
|
|
;;
|
|
*)
|
|
echo "Skipping qcow2 image build"
|
|
exit 0
|
|
;;
|
|
esac
|
|
|
|
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 -0 -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
|