From acd63ee3e4923139a037308a88458b786f7189a6 Mon Sep 17 00:00:00 2001 From: "michael.hudson@canonical.com" Date: Mon, 26 Jan 2026 13:30:39 +1300 Subject: [PATCH] Make sure the unlayered ISO has a cdrom.sources in as well. --- live-build/auto/build | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/live-build/auto/build b/live-build/auto/build index 066f7041..3ec432d8 100755 --- a/live-build/auto/build +++ b/live-build/auto/build @@ -572,9 +572,11 @@ if [ "${MAKE_ISO}" = "yes" ]; then # Link build artifacts with "for-iso." prefix for isobuild to consume. # Layered builds create squashfs via lb_binary_layered (which already # creates for-iso.*.squashfs files). Single-pass builds only have - # ${PREFIX}.squashfs, so we link it here. + # ${PREFIX}.squashfs, which does not contain cdrom.sources, so we + # create a for-iso.filesystem.squashfs that does. if [ -z "$PASSES" ]; then - ln ${PREFIX}.squashfs for-iso.filesystem.squashfs + isobuild generate-sources --mountpoint=/cdrom > chroot/etc/apt/sources.list.d/cdrom.sources + create_squashfs chroot for-iso.filesystem.squashfs fi # Link kernel and initrd files. The ${thing#${PREFIX}} expansion strips # the PREFIX, so "livecd.ubuntu-server.kernel-generic" becomes