install-image-efi: STAGE configurable por entorno
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) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0164nrZWZc78Mr2srrsnoM8U
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user