mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-15 21:01:47 +00:00
Merge lp:~rcj/livecd-rootfs/xenial-proposed/
This commit is contained in:
commit
e6793cfa3a
14
debian/changelog
vendored
14
debian/changelog
vendored
@ -1,4 +1,4 @@
|
|||||||
livecd-rootfs (2.408.9) UNRELEASED; urgency=medium
|
livecd-rootfs (2.408.9) xenial; urgency=medium
|
||||||
|
|
||||||
[ Daniel Watkins ]
|
[ Daniel Watkins ]
|
||||||
* Don't overwrite the default sources.list in cloud images.
|
* Don't overwrite the default sources.list in cloud images.
|
||||||
@ -6,7 +6,17 @@ livecd-rootfs (2.408.9) UNRELEASED; urgency=medium
|
|||||||
an Ubuntu Server installation (i.e. with all components enabled, and all
|
an Ubuntu Server installation (i.e. with all components enabled, and all
|
||||||
deb-src lines commented). LP: #1513529.
|
deb-src lines commented). LP: #1513529.
|
||||||
|
|
||||||
-- Steve Langasek <steve.langasek@ubuntu.com> Tue, 21 Mar 2017 08:29:15 -0700
|
[ Chris Glass ]
|
||||||
|
* Fix the manifest generation in OVA files so that ovf files don't have
|
||||||
|
double extensions. (LP: #1627931)
|
||||||
|
* Fix the OVF's metadata to include Ubuntu specific identifiers and
|
||||||
|
descriptions instead of the generic Linux ones. (LP: #1656293)
|
||||||
|
|
||||||
|
[ Daniel Watkins ]
|
||||||
|
* Add replace_grub_root_with_label function thereby consolidating multiple
|
||||||
|
uses of the same calls to sed.
|
||||||
|
|
||||||
|
-- Robert C Jennings <robert.jennings@canonical.com> Fri, 17 Mar 2017 13:15:49 -0500
|
||||||
|
|
||||||
livecd-rootfs (2.408.8) xenial; urgency=medium
|
livecd-rootfs (2.408.8) xenial; urgency=medium
|
||||||
|
|
||||||
|
@ -249,4 +249,11 @@ convert_to_qcow2() {
|
|||||||
qemu-img info "$destination"
|
qemu-img info "$destination"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
replace_grub_root_with_label() {
|
||||||
|
# When update-grub is run, it will detect the disks in the build system.
|
||||||
|
# Instead, we want grub to use the cloudimg-rootfs labelled disk
|
||||||
|
CHROOT_ROOT="$1"
|
||||||
|
|
||||||
|
sed -i -e "s,root=[^ ]\+,root=LABEL=cloudimg-rootfs," \
|
||||||
|
"$CHROOT_ROOT/boot/grub/grub.cfg"
|
||||||
|
}
|
||||||
|
@ -108,7 +108,7 @@ EOF
|
|||||||
|
|
||||||
chroot mountpoint dpkg-divert --local --rename /etc/grub.d/30_os-prober
|
chroot mountpoint dpkg-divert --local --rename /etc/grub.d/30_os-prober
|
||||||
chroot mountpoint update-grub
|
chroot mountpoint update-grub
|
||||||
sed -i "s,root=.* ,root=LABEL=cloudimg-rootfs ,g" mountpoint/boot/grub/grub.cfg
|
replace_grub_root_with_label mountpoint
|
||||||
chroot mountpoint dpkg-divert --remove --local --rename /etc/grub.d/30_os-prober
|
chroot mountpoint dpkg-divert --remove --local --rename /etc/grub.d/30_os-prober
|
||||||
|
|
||||||
chroot mountpoint apt-get -y clean
|
chroot mountpoint apt-get -y clean
|
||||||
|
@ -51,7 +51,7 @@ EOF
|
|||||||
|
|
||||||
chroot mountpoint dpkg-divert --local --rename /etc/grub.d/30_os-prober
|
chroot mountpoint dpkg-divert --local --rename /etc/grub.d/30_os-prober
|
||||||
chroot mountpoint update-grub
|
chroot mountpoint update-grub
|
||||||
sed -i "s,root=.* ,root=LABEL=cloudimg-rootfs ,g" mountpoint/boot/grub/grub.cfg
|
replace_grub_root_with_label mountpoint
|
||||||
chroot mountpoint dpkg-divert --remove --local --rename /etc/grub.d/30_os-prober
|
chroot mountpoint dpkg-divert --remove --local --rename /etc/grub.d/30_os-prober
|
||||||
|
|
||||||
umount_partition mountpoint
|
umount_partition mountpoint
|
||||||
|
@ -9,11 +9,24 @@
|
|||||||
#
|
#
|
||||||
# For this step, we re-use the VMDK's made in 040-vmdk-image.binary
|
# For this step, we re-use the VMDK's made in 040-vmdk-image.binary
|
||||||
|
|
||||||
|
|
||||||
|
# Switch on $ARCH to determine which ID and description to use in the produced
|
||||||
|
# OVF. We have fancy Ubuntu-specific IDs in the OVF specification, we might as
|
||||||
|
# well use them.
|
||||||
case $ARCH in
|
case $ARCH in
|
||||||
amd64|i386) ;;
|
amd64)
|
||||||
*) echo "OVA images are not supported for $ARCH yet.";
|
ovf_id=94
|
||||||
exit 0;;
|
ovf_os_type="ubuntu64Guest"
|
||||||
|
ovf_desc_bits=64 ;;
|
||||||
|
i386)
|
||||||
|
ovf_id=93
|
||||||
|
ovf_os_type="ubuntu32Guest"
|
||||||
|
ovf_desc_bits=32 ;;
|
||||||
|
*)
|
||||||
|
echo "OVA images are not supported for $ARCH yet.";
|
||||||
|
exit 0;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
cur_d=${PWD}
|
cur_d=${PWD}
|
||||||
my_d=$(dirname $(readlink -f ${0}))
|
my_d=$(dirname $(readlink -f ${0}))
|
||||||
|
|
||||||
@ -57,7 +70,10 @@ sed -i "${ovf}" \
|
|||||||
-e "s/@@NUM_CPUS@@/2/g" \
|
-e "s/@@NUM_CPUS@@/2/g" \
|
||||||
-e "s/@@VERSION@@/${version}/g" \
|
-e "s/@@VERSION@@/${version}/g" \
|
||||||
-e "s/@@DATE@@/${serial_stamp}/g" \
|
-e "s/@@DATE@@/${serial_stamp}/g" \
|
||||||
-e "s/@@MEM_SIZE@@/1024/g"
|
-e "s/@@MEM_SIZE@@/1024/g" \
|
||||||
|
-e "s/@@OVF_ID@@/${ovf_id}/g" \
|
||||||
|
-e "s/@@OVF_OS_TYPE@@/${ovf_os_type}/g" \
|
||||||
|
-e "s/@@OVF_DESC_BITS@@/${ovf_desc_bits}/g"
|
||||||
|
|
||||||
# Get the checksums
|
# Get the checksums
|
||||||
vmdk_sha256=$(sha256sum ${vmdk_f} | cut -d' ' -f1)
|
vmdk_sha256=$(sha256sum ${vmdk_f} | cut -d' ' -f1)
|
||||||
@ -67,7 +83,7 @@ ovf_sha256=$(sha256sum ${ovf} | cut -d' ' -f1)
|
|||||||
manifest="${scratch_d}/${prefix}.mf"
|
manifest="${scratch_d}/${prefix}.mf"
|
||||||
cat > "${manifest}" <<EOF
|
cat > "${manifest}" <<EOF
|
||||||
SHA256(${vmdk_f##*/})= ${vmdk_sha256}
|
SHA256(${vmdk_f##*/})= ${vmdk_sha256}
|
||||||
SHA256(${ovf##*/}.ovf)= ${ovf_sha256}
|
SHA256(${ovf##*/})= ${ovf_sha256}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Now create the OVA
|
# Now create the OVA
|
||||||
|
@ -18,11 +18,21 @@
|
|||||||
cur_d=${PWD}
|
cur_d=${PWD}
|
||||||
my_d=$(dirname $(readlink -f ${0}))
|
my_d=$(dirname $(readlink -f ${0}))
|
||||||
|
|
||||||
|
# Switch on $ARCH to determine which ID and description to use in the produced
|
||||||
|
# OVF. We have fancy Ubuntu-specific IDs in the OVF specification, we might as
|
||||||
|
# well use them.
|
||||||
case $ARCH in
|
case $ARCH in
|
||||||
amd64|i386) ;;
|
amd64)
|
||||||
*)
|
ovf_id=94
|
||||||
echo "Vagrant images are not supported for $ARCH"
|
ovf_os_type="ubuntu64Guest"
|
||||||
exit 0
|
ovf_desc_bits=64 ;;
|
||||||
|
i386)
|
||||||
|
ovf_id=93
|
||||||
|
ovf_os_type="ubuntu32Guest"
|
||||||
|
ovf_desc_bits=32 ;;
|
||||||
|
*)
|
||||||
|
echo "Vagrant images are not supported for $ARCH yet."
|
||||||
|
exit 0;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
. /build/config/functions
|
. /build/config/functions
|
||||||
@ -172,7 +182,10 @@ sed -i "${ovf}" \
|
|||||||
-e "s/@@NUM_CPUS@@/2/g" \
|
-e "s/@@NUM_CPUS@@/2/g" \
|
||||||
-e "s/@@VERSION@@/${version}/g" \
|
-e "s/@@VERSION@@/${version}/g" \
|
||||||
-e "s/@@DATE@@/${serial_stamp}/g" \
|
-e "s/@@DATE@@/${serial_stamp}/g" \
|
||||||
-e "s/@@MEM_SIZE@@/1024/g"
|
-e "s/@@MEM_SIZE@@/1024/g" \
|
||||||
|
-e "s/@@OVF_ID@@/${ovf_id}/g" \
|
||||||
|
-e "s/@@OVF_OS_TYPE@@/${ovf_os_type}/g" \
|
||||||
|
-e "s/@@OVF_DESC_BITS@@/${ovf_desc_bits}/g"
|
||||||
|
|
||||||
ovf_sha256=$(sha256sum ${ovf} | cut -d' ' -f1)
|
ovf_sha256=$(sha256sum ${ovf} | cut -d' ' -f1)
|
||||||
|
|
||||||
@ -181,7 +194,7 @@ manifest="${box_d}/${prefix}.mf"
|
|||||||
cat > "${manifest}" <<EOF
|
cat > "${manifest}" <<EOF
|
||||||
SHA256(${vmdk_f##*/})= ${vmdk_sha256}
|
SHA256(${vmdk_f##*/})= ${vmdk_sha256}
|
||||||
SHA256(${cdrom_vmdk_f##*/})= ${cdrom_sha256}
|
SHA256(${cdrom_vmdk_f##*/})= ${cdrom_sha256}
|
||||||
SHA256(${ovf##*/}.ovf)= ${ovf_sha256}
|
SHA256(${ovf##*/})= ${ovf_sha256}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Now create the box
|
# Now create the box
|
||||||
|
@ -18,8 +18,9 @@
|
|||||||
<VirtualSystem ovf:id="@@NAME@@">
|
<VirtualSystem ovf:id="@@NAME@@">
|
||||||
<Info>A virtual machine</Info>
|
<Info>A virtual machine</Info>
|
||||||
<Name>@@NAME@@</Name>
|
<Name>@@NAME@@</Name>
|
||||||
<OperatingSystemSection ovf:id="100" vmw:osType="other3xLinux64Guest">
|
<OperatingSystemSection ovf:id="@@OVF_ID@@" vmw:osType="@@OVF_OS_TYPE@@">
|
||||||
<Info>The kind of installed guest operating system</Info>
|
<Info>The kind of installed guest operating system</Info>
|
||||||
|
<Description>Ubuntu Linux (@@OVF_DESC_BITS@@-bit)</Description>
|
||||||
</OperatingSystemSection>
|
</OperatingSystemSection>
|
||||||
|
|
||||||
<ProductSection ovf:required="false">
|
<ProductSection ovf:required="false">
|
||||||
|
@ -16,8 +16,9 @@
|
|||||||
<VirtualSystem ovf:id="@@NAME@@">
|
<VirtualSystem ovf:id="@@NAME@@">
|
||||||
<Info>A virtual machine</Info>
|
<Info>A virtual machine</Info>
|
||||||
<Name>@@NAME@@</Name>
|
<Name>@@NAME@@</Name>
|
||||||
<OperatingSystemSection ovf:id="100" vmw:osType="other3xLinux64Guest">
|
<OperatingSystemSection ovf:id="@@OVF_ID@@" vmw:osType="@@OVF_OS_TYPE@@">
|
||||||
<Info>The kind of installed guest operating system</Info>
|
<Info>The kind of installed guest operating system</Info>
|
||||||
|
<Description>Ubuntu Linux (@@OVF_DESC_BITS@@-bit)</Description>
|
||||||
</OperatingSystemSection>
|
</OperatingSystemSection>
|
||||||
|
|
||||||
<ProductSection ovf:required="false">
|
<ProductSection ovf:required="false">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user