From 0212bfdc1d512053e7b34c3f0a51345ee0ba2a7f Mon Sep 17 00:00:00 2001 From: Dorian Date: Fri, 27 Mar 2026 20:36:39 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20live-boot=20check=20=E2=80=94=20scripts/?= =?UTF-8?q?live=20is=20a=20file=20not=20a=20directory?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The verification used [ -d ] but live-boot-initramfs-tools installs scripts/live as a regular file, not a directory. Changed to [ -e ]. The chroot install was actually succeeding — only the check was wrong. Co-Authored-By: Claude Opus 4.6 (1M context) --- image-recipe/build-auto-installer-iso.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/image-recipe/build-auto-installer-iso.sh b/image-recipe/build-auto-installer-iso.sh index ee27bd37..f1bf1efe 100755 --- a/image-recipe/build-auto-installer-iso.sh +++ b/image-recipe/build-auto-installer-iso.sh @@ -494,7 +494,7 @@ if [ -f /installer/var/lib/apt/lists/*_Packages 2>/dev/null ]; then fi # Verify live-boot hooks are in place -if [ -d /installer/usr/share/initramfs-tools/scripts/live ]; then +if [ -e /installer/usr/share/initramfs-tools/scripts/live ]; then echo " [container] live-boot initramfs hooks: OK" else echo " [container] WARNING: live-boot hooks missing, trying dpkg extraction..." @@ -503,7 +503,7 @@ else dpkg-deb -x "$deb" /installer/ 2>/dev/null || true done rm -f live-boot*.deb 2>/dev/null || true - if [ -d /installer/usr/share/initramfs-tools/scripts/live ]; then + if [ -e /installer/usr/share/initramfs-tools/scripts/live ]; then echo " [container] live-boot hooks installed via dpkg extraction: OK" else echo " [container] FATAL: Could not install live-boot hooks!"