From aefdce43939a7fe35786108e9328bf6f11fab24a Mon Sep 17 00:00:00 2001 From: Sergio Date: Thu, 3 Sep 2026 20:17:02 +0000 Subject: [PATCH] install-image-efi: STAGE configurable por entorno MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit El staging estaba clavado en work/.install-efi-stage. Cuando el rootfs fundido vive en OTRO volumen —el store de este hub es un bind-mount de /dev/sdb y work/ está en /dev/sdc— los hardlinks del staging fallan enteros con EXDEV, porque linkat() rechaza cruzar MOUNTS distintos aunque sean el mismo fs. Con STAGE= se pone el staging del lado correcto. Default idéntico al de antes. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_0164nrZWZc78Mr2srrsnoM8U --- scripts/install-image-efi.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install-image-efi.sh b/scripts/install-image-efi.sh index 9537ad98..ed5067f9 100755 --- a/scripts/install-image-efi.sh +++ b/scripts/install-image-efi.sh @@ -65,7 +65,7 @@ BUSYBOX="${BUSYBOX:-$ROOTFS/bin/busybox}" for t in sfdisk mke2fs cpio gzip; do command -v "$t" >/dev/null 2>&1 || { echo "falta $t" >&2; exit 1; }; done unshare -r true 2>/dev/null || { echo "se requiere 'unshare -r' (ficheros root-owned sin sudo)" >&2; exit 1; } -STAGE="work/.install-efi-stage" +STAGE="${STAGE:-work/.install-efi-stage}" rm -rf "$STAGE"; mkdir -p "$STAGE" ROOT_TREE="$STAGE/root" IRD_TREE="$STAGE/initramfs"