diff --git a/scripts/install-image.sh b/scripts/install-image.sh index 35b98f6a..3917e52e 100755 --- a/scripts/install-image.sh +++ b/scripts/install-image.sh @@ -142,6 +142,15 @@ if [ -n "$_store" ] && [ -x /sbin/sfdisk ]; then fi [ -n "$_store" ] && /bin/busybox mount -t ext4 "$_store" /store || _say "no pude montar /store ($_store)" [ -n "$_state" ] && /bin/busybox mount -t ext4 "$_state" /var/lib/hammer || _say "no pude montar /var/lib/hammer ($_state)" +# ── OPCIONAL: un filesystem etiquetado `hammer-work` se monta en /work ────────────────────────── +# Convención, no requisito: la imagen no crea esa partición. Existe para el caso de un HUB, donde el +# trabajo pesado —`work/sources`, los tarballs, el `CARGO_HOME`— no cabe ni conviene en la raíz. En +# gioser eso son 85 G. Si la etiqueta no existe, no pasa nada y no se avisa: no es un error. +_work=$(/bin/busybox findfs LABEL=hammer-work 2>/dev/null) +if [ -n "$_work" ]; then + /bin/busybox mkdir -p /work + /bin/busybox mount -t ext4 "$_work" /work || _say "no pude montar /work ($_work)" +fi exec /usr/bin/arje-zero INIT chmod +x "$ROOT_TREE/sbin/init"