From 51fa2b9b92103ecb37446a903bf9157de864d2db Mon Sep 17 00:00:00 2001 From: "michael.hudson@canonical.com" Date: Tue, 24 Mar 2026 20:26:48 +1300 Subject: [PATCH] auto/build: install kernel into ISO tree for non-layered builds Non-layered MAKE_ISO=yes builds (e.g. kubuntu) had no equivalent of the lb_binary_layered kernel placement added in the previous commit: lb binary_linux-image put the kernel in binary/casper/ but nothing copied it into the ISO tree (CASPER_DIR). Co-Authored-By: Claude Sonnet 4.6 --- live-build/auto/build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/live-build/auto/build b/live-build/auto/build index d8a722f2..bb28ca47 100755 --- a/live-build/auto/build +++ b/live-build/auto/build @@ -580,6 +580,9 @@ if [ "${MAKE_ISO}" = "yes" ]; then isobuild generate-sources --mountpoint=/cdrom > chroot/etc/apt/sources.list.d/cdrom.sources create_squashfs chroot ${CASPER_DIR}/filesystem.squashfs rm chroot/etc/apt/sources.list.d/cdrom.sources + for flavor in $LB_LINUX_FLAVOURS; do + iso_install_kernel "$flavor" binary/${INITFS}/vmlinu?-* binary/${INITFS}/initrd.img-* + done fi isobuild extract-casper-uuids isobuild make-bootable --project "${PROJECT}" --capproject "$(cat config/iso-ids/capproject)" \