mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-08-16 03:04:07 +00:00
Imported 2.525.33
No reason for CPC update specified.
This commit is contained in:
parent
85a105fe10
commit
14f1819606
18
debian/changelog
vendored
18
debian/changelog
vendored
@ -1,3 +1,21 @@
|
|||||||
|
livecd-rootfs (2.525.33) bionic; urgency=medium
|
||||||
|
|
||||||
|
* Add support for the 'kassel' subflavor of UC18 images. (LP: #1850674)
|
||||||
|
|
||||||
|
-- Łukasz 'sil2100' Zemczak <lukasz.zemczak@ubuntu.com> Wed, 30 Oct 2019 18:09:02 +0100
|
||||||
|
|
||||||
|
livecd-rootfs (2.525.32) bionic; urgency=medium
|
||||||
|
|
||||||
|
* Fix a terrible typo in auto/build that causes all core18 builds to fail on
|
||||||
|
this series (LP: #1849343).
|
||||||
|
* Backport 999-ubuntu-image-customization.chroot to have a common place for
|
||||||
|
our cloud-init datasource. Add some modifications on top to make sure the
|
||||||
|
legacy raspi2 configuration stays the same (LP: #1849472).
|
||||||
|
* Backport enabling of adding extra snaps to ubuntu-core images via the
|
||||||
|
EXTRA_SNAPS environment (LP: #1849491).
|
||||||
|
|
||||||
|
-- Łukasz 'sil2100' Zemczak <lukasz.zemczak@ubuntu.com> Tue, 22 Oct 2019 17:34:31 +0200
|
||||||
|
|
||||||
livecd-rootfs (2.525.31) bionic; urgency=medium
|
livecd-rootfs (2.525.31) bionic; urgency=medium
|
||||||
|
|
||||||
* magic-proxy: dump proxy log to stdout on failure (LP: #1847300)
|
* magic-proxy: dump proxy log to stdout on failure (LP: #1847300)
|
||||||
|
@ -47,7 +47,7 @@ PREFIX="livecd.$PROJECT${SUBARCH:+-$SUBARCH}"
|
|||||||
if [ "${IMAGEFORMAT:-}" = "ubuntu-image" ]; then
|
if [ "${IMAGEFORMAT:-}" = "ubuntu-image" ]; then
|
||||||
# Use ubuntu-image instead of live-build
|
# Use ubuntu-image instead of live-build
|
||||||
|
|
||||||
if [ "$PROJECT" = "ubuntu-core"]; then
|
if [ "$PROJECT" = "ubuntu-core" ]; then
|
||||||
CHANNEL="${CHANNEL:-edge}"
|
CHANNEL="${CHANNEL:-edge}"
|
||||||
env SNAPPY_STORE_NO_CDN=1 \
|
env SNAPPY_STORE_NO_CDN=1 \
|
||||||
ubuntu-image snap -c "$CHANNEL" $UBUNTU_IMAGE_ARGS \
|
ubuntu-image snap -c "$CHANNEL" $UBUNTU_IMAGE_ARGS \
|
||||||
|
@ -174,6 +174,7 @@ case $IMAGEFORMAT in
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
ubuntu-image)
|
ubuntu-image)
|
||||||
|
UBUNTU_IMAGE_ARGS=""
|
||||||
case "$ARCH+${SUBARCH:-}" in
|
case "$ARCH+${SUBARCH:-}" in
|
||||||
amd64+*)
|
amd64+*)
|
||||||
MODEL=pc-amd64 ;;
|
MODEL=pc-amd64 ;;
|
||||||
@ -200,11 +201,20 @@ case $IMAGEFORMAT in
|
|||||||
|
|
||||||
case $MODEL in
|
case $MODEL in
|
||||||
pc-amd64|pc-i386)
|
pc-amd64|pc-i386)
|
||||||
UBUNTU_IMAGE_ARGS="--image-size 3700M" ;;
|
[ -z "${SUBARCH:-}" ] \
|
||||||
*)
|
&& UBUNTU_IMAGE_ARGS="--image-size 3700M"
|
||||||
UBUNTU_IMAGE_ARGS="" ;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
case "$ARCH+${SUBARCH:-}" in
|
||||||
|
amd64+kassel)
|
||||||
|
EXTRA_SNAPS="core bluez alsa-utils"
|
||||||
|
;;
|
||||||
|
*) ;;
|
||||||
|
esac
|
||||||
|
for snap in $EXTRA_SNAPS; do
|
||||||
|
UBUNTU_IMAGE_ARGS="$UBUNTU_IMAGE_ARGS --extra-snaps $snap"
|
||||||
|
done
|
||||||
echo "IMAGEFORMAT=$IMAGEFORMAT" >> config/common
|
echo "IMAGEFORMAT=$IMAGEFORMAT" >> config/common
|
||||||
echo "UBUNTU_IMAGE_ARGS=\"$UBUNTU_IMAGE_ARGS\"" >> config/common
|
echo "UBUNTU_IMAGE_ARGS=\"$UBUNTU_IMAGE_ARGS\"" >> config/common
|
||||||
# Store model assertion in top dir to get it picked up later as a build artifact
|
# Store model assertion in top dir to get it picked up later as a build artifact
|
||||||
@ -215,7 +225,6 @@ case $IMAGEFORMAT in
|
|||||||
else
|
else
|
||||||
# classic images
|
# classic images
|
||||||
|
|
||||||
UBUNTU_IMAGE_ARGS=""
|
|
||||||
UBUNTU_IMAGE_ARGS="$UBUNTU_IMAGE_ARGS${PROPOSED:+ --with-proposed}"
|
UBUNTU_IMAGE_ARGS="$UBUNTU_IMAGE_ARGS${PROPOSED:+ --with-proposed}"
|
||||||
UBUNTU_IMAGE_ARGS="$UBUNTU_IMAGE_ARGS${EXTRA_PPAS:+ --extra-ppas \"$EXTRA_PPAS\"}"
|
UBUNTU_IMAGE_ARGS="$UBUNTU_IMAGE_ARGS${EXTRA_PPAS:+ --extra-ppas \"$EXTRA_PPAS\"}"
|
||||||
|
|
||||||
@ -930,6 +939,8 @@ echo "LB_BINARY_HOOKS=\"$BINARY_HOOKS\"" >> config/binary
|
|||||||
echo "BUILDSTAMP=\"$NOW\"" >> config/binary
|
echo "BUILDSTAMP=\"$NOW\"" >> config/binary
|
||||||
echo "SUBPROJECT=\"${SUBPROJECT:-}\"" >> config/binary
|
echo "SUBPROJECT=\"${SUBPROJECT:-}\"" >> config/binary
|
||||||
echo "LB_DISTRIBUTION=\"$SUITE\"" >> config/binary
|
echo "LB_DISTRIBUTION=\"$SUITE\"" >> config/binary
|
||||||
|
echo "IMAGEFORMAT=\"$IMAGEFORMAT\"" >> config/chroot
|
||||||
|
echo "SUBARCH=\"$SUBARCH\"" >> config/chroot
|
||||||
|
|
||||||
case $ARCH+$SUBARCH in
|
case $ARCH+$SUBARCH in
|
||||||
armhf+raspi2|armhf+raspi3|arm64+raspi3)
|
armhf+raspi2|armhf+raspi3|arm64+raspi3)
|
||||||
|
@ -142,22 +142,17 @@ fi
|
|||||||
#### END COMMON ARCH FUNCTIONS
|
#### END COMMON ARCH FUNCTIONS
|
||||||
|
|
||||||
|
|
||||||
case $arch in
|
case $arch+${SUBARCH:-} in
|
||||||
# ARM images are special
|
# raspi2 images are special
|
||||||
armhf|arm64)
|
armhf+raspi2)
|
||||||
# Dirty hack because SUBARCH doesn't exist when running chroot hooks,
|
fake_cloud_init
|
||||||
# and we don't want raspi2 images to depend on a cloud data source:
|
echo "Image architecture is ARM. Existing vmbuilder-fixups"
|
||||||
if _xchroot "${rootd}" dpkg -l linux-image-raspi2 2>/dev/null | grep -q '^.i'; then
|
exit 0
|
||||||
fake_cloud_init
|
;;
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Image architecture is ARM. Existing vmbuilder-fixups"
|
armhf+*|arm64+*|powerpc+*|ppc64el+*|s390x+*)
|
||||||
|
exit 0
|
||||||
exit 0
|
;;
|
||||||
;;
|
|
||||||
powerpc|ppc64el|s390x)
|
|
||||||
exit 0
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
psuedo_grub_probe() {
|
psuedo_grub_probe() {
|
||||||
|
23
live-build/ubuntu-cpc/hooks.d/chroot/999-ubuntu-image-customization.chroot
Executable file
23
live-build/ubuntu-cpc/hooks.d/chroot/999-ubuntu-image-customization.chroot
Executable file
@ -0,0 +1,23 @@
|
|||||||
|
#!/bin/bash -ex
|
||||||
|
|
||||||
|
. /root/config/chroot
|
||||||
|
|
||||||
|
# Specific ubuntu-image chroot configuration goes here.
|
||||||
|
# Currently the none IMAGEFORMAT is equivalent to building a rootfs for an image
|
||||||
|
# for a physical device, not a cloud instance. For such images we want some
|
||||||
|
# special cloud-init configuration that should not be happening for cloud
|
||||||
|
# cases. This check should be changed to a per-MODEL/per-SUBARCH check once
|
||||||
|
# we support building cloud images via ubuntu-image.
|
||||||
|
if [ "$IMAGEFORMAT" == "none" ]; then
|
||||||
|
# If the cloud does not provide a meta-data service this should be run
|
||||||
|
# This will setup a nocloud datasource on the boot partition.
|
||||||
|
# This is the default behavior for our ubuntu-image built preinstalled
|
||||||
|
# images.
|
||||||
|
cat << EOF > /etc/cloud/cloud.cfg.d/99-fake_cloud.cfg
|
||||||
|
# configure cloud-init for NoCloud
|
||||||
|
datasource_list: [ NoCloud, None ]
|
||||||
|
datasource:
|
||||||
|
NoCloud:
|
||||||
|
fs_label: system-boot
|
||||||
|
EOF
|
||||||
|
fi
|
Loading…
x
Reference in New Issue
Block a user