mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-19 06:41:33 +00:00
Pre-merge commit
This commit is contained in:
parent
48a08042ed
commit
1855130ecc
31
debian/changelog
vendored
31
debian/changelog
vendored
@ -1,34 +1,3 @@
|
|||||||
livecd-rootfs (2.354.0~utlemming33) xenial; urgency=medium
|
|
||||||
|
|
||||||
* Test build
|
|
||||||
|
|
||||||
-- Ben Howard <ben.howard@ubuntu.com> Thu, 12 Nov 2015 17:56:31 -0700
|
|
||||||
|
|
||||||
livecd-rootfs (2.354.0~utlemming32) xenial; urgency=medium
|
|
||||||
|
|
||||||
* Test build
|
|
||||||
|
|
||||||
-- Ben Howard <ben.howard@ubuntu.com> Thu, 12 Nov 2015 17:52:26 -0700
|
|
||||||
|
|
||||||
livecd-rootfs (2.354.0~utlemming31) xenial; urgency=medium
|
|
||||||
|
|
||||||
* Test build
|
|
||||||
|
|
||||||
-- Ben Howard <ben.howard@ubuntu.com> Thu, 12 Nov 2015 17:22:18 -0700
|
|
||||||
|
|
||||||
livecd-rootfs (2.354.0~utlemming30) xenial; urgency=medium
|
|
||||||
|
|
||||||
* Test build
|
|
||||||
|
|
||||||
-- Ben Howard <ben.howard@ubuntu.com> Thu, 12 Nov 2015 17:21:42 -0700
|
|
||||||
|
|
||||||
livecd-rootfs (2.354) xenial; urgency=medium
|
|
||||||
|
|
||||||
* ubuntu-cpc: extended hooks to build additional cloud image targets
|
|
||||||
including VMDKs, OVA, and Vagrant images.
|
|
||||||
|
|
||||||
-- Ben Howard <ben.howard@ubuntu.com> Thu, 12 Nov 2015 15:00:36 -0700
|
|
||||||
|
|
||||||
livecd-rootfs (2.353) xenial; urgency=medium
|
livecd-rootfs (2.353) xenial; urgency=medium
|
||||||
|
|
||||||
* drop input group from snappy images, adjust md5 sums in
|
* drop input group from snappy images, adjust md5 sums in
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
# vi: ts=4 expandtab syntax=sh
|
||||||
|
|
||||||
CLOUD_IMG_STR="# CLOUD_IMG: This file was created/modified by the Cloud Image build process"
|
CLOUD_IMG_STR="# CLOUD_IMG: This file was created/modified by the Cloud Image build process"
|
||||||
IMAGE_SIZE=$((2252*1024**2)) # 2.2G (the current size we ship)
|
IMAGE_SIZE=$((2252*1024**2)) # 2.2G (the current size we ship)
|
||||||
|
|
||||||
@ -84,16 +86,15 @@ modify_vmdk_header() {
|
|||||||
# remove the comments from vmdk-stream-converter which causes
|
# remove the comments from vmdk-stream-converter which causes
|
||||||
# VirtualBox and others to fail VMDK validation
|
# VirtualBox and others to fail VMDK validation
|
||||||
|
|
||||||
sed -e 's|ddb.comment.*|ddb.toolsVersion = "2147483647"|' \
|
sed -e 's|# Description file.*|# Disk DescriptorFile|' \
|
||||||
-e 's|ddb.virtualHWVersion.*|ddb.virtualHWVersion = "7"|' \
|
-e '/# Believe this is random*/d' \
|
||||||
-e 's|createType.*|createType="streamOptimized"|' \
|
|
||||||
-e 's|# Description file.*|# Disk DescriptorFile|' \
|
|
||||||
-e '/# Believe.*/d' \
|
|
||||||
-e '/# Indicates no parent/d' \
|
-e '/# Indicates no parent/d' \
|
||||||
|
-e '/# The Disk Data Base/d' \
|
||||||
|
-e 's|ddb.comment.*|ddb.toolsVersion = "2147483647"|' \
|
||||||
"${descriptor}" > "${newdescriptor}"
|
"${descriptor}" > "${newdescriptor}"
|
||||||
|
|
||||||
# The header is cannot be bigger than 1024
|
# The header is cannot be bigger than 1024
|
||||||
expr $(stat --format=%s ${newdescriptor}) \< 1024 || {
|
expr $(stat --format=%s ${newdescriptor}) \< 1024 > /dev/null 2>&1 || {
|
||||||
echo "descriptor is too large, VMDK will be invalid!"; exit 1; }
|
echo "descriptor is too large, VMDK will be invalid!"; exit 1; }
|
||||||
|
|
||||||
# Overwrite the vmdk header with our new, modified one
|
# Overwrite the vmdk header with our new, modified one
|
||||||
@ -106,9 +107,9 @@ modify_vmdk_header() {
|
|||||||
|
|
||||||
create_vmdk() {
|
create_vmdk() {
|
||||||
# There is no real good way to create a _compressed_ VMDK using open source
|
# There is no real good way to create a _compressed_ VMDK using open source
|
||||||
# tooling that works across multiple VMDK-capable platforms. Thie functions
|
# tooling that works across multiple VMDK-capable platforms. This functions
|
||||||
# uses vmdk-stream-converter and then call modify_vmdk_header to produce a
|
# uses vmdk-stream-converter and then calls modify_vmdk_header to produce a
|
||||||
# compatiable VMDK.
|
# compatible VMDK.
|
||||||
|
|
||||||
src="$1"
|
src="$1"
|
||||||
destination="$2"
|
destination="$2"
|
||||||
@ -120,12 +121,9 @@ create_vmdk() {
|
|||||||
cp ${src} ${scratch_d}/resize.img
|
cp ${src} ${scratch_d}/resize.img
|
||||||
|
|
||||||
truncate --size=${size}M ${scratch_d}/resize.img
|
truncate --size=${size}M ${scratch_d}/resize.img
|
||||||
python ${streamconverter} ${scratch_d}/resize.img "${destination}"
|
python ${streamconverter} ${scratch_d}/resize.img ${destination}
|
||||||
modify_vmdk_header "${destination}"
|
modify_vmdk_header ${destination}
|
||||||
|
|
||||||
qemu-img info "${destination}"
|
|
||||||
|
|
||||||
|
qemu-img info ${destination}
|
||||||
rm -rf ${scratch_d}
|
rm -rf ${scratch_d}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash -eux
|
#!/bin/bash -eux
|
||||||
# vi: ts=4 noexpandtab
|
# vi: ts=4 expandtab
|
||||||
#
|
#
|
||||||
# Generate VMDK files
|
# Generate VMDK files
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ esac
|
|||||||
|
|
||||||
. /build/config/functions
|
. /build/config/functions
|
||||||
|
|
||||||
create_vmdk binary/boot/disk.ext4 livecd.ubuntu-cpc.disk1.vmdk
|
create_vmdk binary/boot/disk.ext4 livecd.ubuntu-cpc.disk1.vmdk
|
||||||
|
|
||||||
if [ -e binary/boot/disk-uefi.ext4 ]; then
|
if [ -e binary/boot/disk-uefi.ext4 ]; then
|
||||||
create_vmdk binary/boot/disk-uefi.ext4 livecd.ubuntu-cpc.uefi.vmdk
|
create_vmdk binary/boot/disk-uefi.ext4 livecd.ubuntu-cpc.uefi.vmdk
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash -eux
|
#!/bin/bash -eux
|
||||||
# vi: ts=4 noexpandtab
|
# vi: ts=4 expandtab
|
||||||
#
|
#
|
||||||
# Generate OVA images
|
# Generate OVA images
|
||||||
#
|
#
|
||||||
|
@ -17,14 +17,12 @@ my_d=$(dirname $(readlink -f ${0}))
|
|||||||
|
|
||||||
architecture=$(chroot chroot dpkg --print-architecture)
|
architecture=$(chroot chroot dpkg --print-architecture)
|
||||||
base_vmdk="livecd.ubuntu-cpc.disk1.vmdk"
|
base_vmdk="livecd.ubuntu-cpc.disk1.vmdk"
|
||||||
case ${architecture} in
|
|
||||||
amd64) base_vmdk="livecd.ubuntu-cpc.uefi.vmdk";;
|
|
||||||
*) echo "OVA images are not supported for ${architecture} yet.";
|
|
||||||
exit 0;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
if [ ! -e ${base_vmdk} ]; then
|
if [[ "${architecture}" =~ (amd64|i386) ]]; then
|
||||||
find . | grep vmdk
|
echo "Vagrant images are not supported for ${architecutre}"
|
||||||
|
exit 0
|
||||||
|
elif [ ! -e ${base_vmdk} ]; then
|
||||||
|
echo "Did not find VMDK to produce Vagrant images."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user