From 54508e6583223ea98dbed52b778c7145dea24371 Mon Sep 17 00:00:00 2001 From: Iain Lane Date: Mon, 13 Jul 2020 17:41:02 +0100 Subject: [PATCH] Hack seeding of linux kernel in ubuntustudio/focal ubuntustudio-default-settings in focal release has a Recommends to this kernel, which makes it impossible to update the kernel later on, since we would install the -updates and release kernel, which isn't allowed and causes FTBFS. Hack out the focal-release kernel and let the rest of the build process pull in the right one. LP: #1884915 --- live-build/auto/config | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/live-build/auto/config b/live-build/auto/config index 7a7fe245..0e9735c5 100755 --- a/live-build/auto/config +++ b/live-build/auto/config @@ -688,6 +688,23 @@ case $PROJECT in ubuntustudio-dvd) add_task install minimal standard ubuntustudio-desktop ubuntustudio-audio ubuntustudio-fonts ubuntustudio-graphics ubuntustudio-video ubuntustudio-publishing ubuntustudio-photography + case $SUITE in + focal) + # ubuntustudio-default-settings in focal + # release has a Recommends to this kernel, + # which makes it impossible to update the + # kernel later on, since we would install the + # -updates and release kernel, which isn't + # allowed and causes the squashfs to fail to + # build. Hack out the focal-release kernel and + # let the rest of the build process pull in the + # right one. (See right below.) + for package in linux-lowlatency linux-image-lowlatency linux-headers-lowlatency linux-image-5.4.0-26-lowlatency linux-headers-5.4.0-26-lowlatency; do + sed -i "s/$/ -a --not -XFPackage ${package}/" \ + "config/package-lists/livecd-rootfs.list.chroot_install" + done + ;; + esac COMPONENTS='main restricted universe multiverse' case $ARCH in amd64|i386) KERNEL_FLAVOURS=lowlatency ;;