From 71b93548c3dc134de386756ceb3f61b9fe36b082 Mon Sep 17 00:00:00 2001 From: Dorian Date: Fri, 27 Mar 2026 19:11:54 +0000 Subject: [PATCH] fix: install live-boot via apt after debootstrap, remove partition_offset MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two boot fixes: - live-boot package must be installed via chroot apt-get, not debootstrap --include (minbase resolver can't handle its deps). Verified initrd was missing scripts/live* entirely. - Remove -partition_offset 16 from xorriso — it was designed for the original Debian Live MBR, not the standard ISOLINUX isohdpfx.bin. Co-Authored-By: Claude Opus 4.6 (1M context) --- image-recipe/build-auto-installer-iso.sh | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/image-recipe/build-auto-installer-iso.sh b/image-recipe/build-auto-installer-iso.sh index 2b152717..b03a8fa4 100755 --- a/image-recipe/build-auto-installer-iso.sh +++ b/image-recipe/build-auto-installer-iso.sh @@ -461,10 +461,22 @@ debootstrap --variant=minbase --arch=${DEB_ARCH} \ kmod,procps,iproute2,ca-certificates,gdisk,\ cryptsetup,cryptsetup-initramfs,parted,dosfstools,e2fsprogs,\ linux-image-${DEB_ARCH},grub-efi-${DEB_ARCH},grub-pc-bin,\ -live-boot,live-boot-initramfs-tools,\ pciutils,usbutils,less,nano \ bookworm /installer http://deb.debian.org/debian +# Install live-boot separately — debootstrap minbase resolver can't handle it +echo " [container] Installing live-boot for squashfs root support..." +chroot /installer apt-get update -qq +chroot /installer apt-get install -y --no-install-recommends live-boot live-boot-initramfs-tools +chroot /installer apt-get clean +# Verify live-boot hooks are in place +if [ -d /installer/usr/share/initramfs-tools/scripts/live ]; then + echo " [container] live-boot initramfs hooks: OK" +else + echo " [container] WARNING: live-boot hooks not found!" + ls /installer/usr/share/initramfs-tools/scripts/ 2>/dev/null +fi + echo " [container] Configuring installer environment..." # Set hostname @@ -2556,7 +2568,6 @@ if [ ! -f "$EFI_IMG" ]; then -c isolinux/boot.cat \ -b isolinux/isolinux.bin \ -no-emul-boot -boot-load-size 4 -boot-info-table \ - -partition_offset 16 \ "$INSTALLER_ISO" else xorriso -as mkisofs -o "$OUTPUT_ISO" \ @@ -2571,7 +2582,6 @@ else -e boot/grub/efi.img \ -no-emul-boot \ -isohybrid-gpt-basdat \ - -partition_offset 16 \ "$INSTALLER_ISO" fi