diff --git a/debian/changelog b/debian/changelog index 84c310ee..d98cfaf4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,32 @@ +livecd-rootfs (2.525.14) bionic; urgency=medium + + * More changes for raspi3 build support (LP: #1805668): + - Fix 100-purge-grub-legacy-ec2-arm.chroot to not gate on ARCH as that's + not defined in .chroot hooks. + - Use the new linux-firmware-raspi2 for boot binary blobs as + raspi3-firmware includes upgrade hooks that conflict with our image + configuration. + + -- Łukasz 'sil2100' Zemczak Fri, 18 Jan 2019 16:56:58 +0100 + +livecd-rootfs (2.525.13) bionic; urgency=medium + + [ Balint Reczey ] + * Update Vcs-* fields in debian/control to point to git. + + [ Łukasz 'sil2100' Zemczak ] + * Another batch of cherry-picks for raspi3 support (LP: #1805668) + - Add wpasupplicant to the additional packages installed for the raspi2 and + raspi3 targets. + - Default to IMAGEFORMAT=ubuntu-image for raspi3 ubuntu-cpc builds. + - Link the resulting raspi3 image to a filename that cdimage expects from a + preinstalled image build. + * Add the 100-purge-grub-legacy-ec2-arm.chroot hook to remove + grub-legacy-ec2 from any ARM based ubuntu-cpc images we create. The package + is no longer in the server seed of newer series anyway. + + -- Łukasz 'sil2100' Zemczak Fri, 11 Jan 2019 14:53:10 +0100 + livecd-rootfs (2.525.12) bionic; urgency=medium * Key netplan delegation to NetworkManager on presence of diff --git a/debian/control b/debian/control index b0bd1030..92378a3e 100644 --- a/debian/control +++ b/debian/control @@ -4,7 +4,7 @@ Priority: optional Build-Depends: debhelper (>= 7) Maintainer: Ubuntu Developers Standards-Version: 3.9.6 -Vcs-Bzr: lp:~ubuntu-core-dev/livecd-rootfs/bionic-proposed/ +Vcs-Git: https://git.launchpad.net/livecd-rootfs -b ubuntu/bionic Package: livecd-rootfs Architecture: any diff --git a/live-build/auto/build b/live-build/auto/build index 273f1a10..6de5a77b 100755 --- a/live-build/auto/build +++ b/live-build/auto/build @@ -45,6 +45,8 @@ if [ "${IMAGEFORMAT:-}" = "ubuntu-image" ]; then # define those. mv output/*.img "$PREFIX".img xz -0 -T4 "$PREFIX".img + # Also link the output image to a filename that cdimage expects + ln "$PREFIX".img.xz livecd.ubuntu-cpc.disk1.img.xz mv output/filesystem.manifest "$PREFIX".manifest fi diff --git a/live-build/auto/config b/live-build/auto/config index fe82ccad..bed069b4 100755 --- a/live-build/auto/config +++ b/live-build/auto/config @@ -114,7 +114,12 @@ add_binary_hook () if [ -z "${IMAGEFORMAT:-}" ]; then case $PROJECT:${SUBPROJECT:-} in ubuntu-cpc:*) - IMAGEFORMAT=ext4 + if [ "$SUBARCH" = "raspi3" ]; then + # For now only raspi3, but others are soon to follow + IMAGEFORMAT=ubuntu-image + else + IMAGEFORMAT=ext4 + fi ;; ubuntu-server:live) IMAGEFORMAT=plain @@ -806,13 +811,13 @@ case $ARCH in ;; raspi2) COMPONENTS='main restricted universe multiverse' - add_package install linux-firmware-raspi2 u-boot-rpi flash-kernel u-boot-tools + add_package install linux-firmware-raspi2 u-boot-rpi flash-kernel u-boot-tools wpasupplicant BINARY_REMOVE_LINUX=false ;; raspi3) COMPONENTS='main restricted universe multiverse' KERNEL_FLAVOURS=raspi2 - add_package install raspi3-firmware u-boot-rpi flash-kernel u-boot-tools + add_package install linux-firmware-raspi2 u-boot-rpi flash-kernel u-boot-tools wpasupplicant BINARY_REMOVE_LINUX=false ;; diff --git a/live-build/ubuntu-cpc/hooks/100-purge-grub-legacy-ec2-arm.chroot b/live-build/ubuntu-cpc/hooks/100-purge-grub-legacy-ec2-arm.chroot new file mode 100755 index 00000000..c409b791 --- /dev/null +++ b/live-build/ubuntu-cpc/hooks/100-purge-grub-legacy-ec2-arm.chroot @@ -0,0 +1,13 @@ +#!/bin/sh -eux + +# Only execute the hack for ARM images +# ARCH is not available in .chroot hooks so we need to get the architecture +# manually. +arch=$(dpkg --print-architecture) +if [ "$arch" != "armhf" ] && [ "$arch" != "arm64" ]; then + exit 0 +fi + +export DEBIAN_FRONTEND=noninteractive +# Why is grub-legacy-ec2 even on the image? +apt-get remove --yes --purge grub-legacy-ec2 || true diff --git a/live-build/ubuntu-server/includes.binary/boot/.keep b/live-build/ubuntu-server/includes.binary/boot/.keep new file mode 100644 index 00000000..e69de29b