diff --git a/proxmox/lxc/ct-114-litecoin-wallet/scripts/provision-ct114-litecoin.sh b/proxmox/lxc/ct-114-litecoin-wallet/scripts/provision-ct114-litecoin.sh index 01dcdaf..3b35ad8 100755 --- a/proxmox/lxc/ct-114-litecoin-wallet/scripts/provision-ct114-litecoin.sh +++ b/proxmox/lxc/ct-114-litecoin-wallet/scripts/provision-ct114-litecoin.sh @@ -92,10 +92,11 @@ storage_is_active "$TEMPLATE_STORAGE" || die "template storage ${TEMPLATE_STORAGE} is not active" storage_is_active "$CONTAINER_STORAGE" || die "container storage ${CONTAINER_STORAGE} is not active" -# The Litecoin chain needs roughly 100 GB plus growth; require headroom for -# the 150 GiB rootfs plus snapshots before creating anything. -storage_has_free "$CONTAINER_STORAGE" $((ROOT_DISK_GIB + 64)) || - die "container storage ${CONTAINER_STORAGE} has less than $((ROOT_DISK_GIB + 64)) GiB free" +# The Litecoin chain needs roughly 100 GB plus growth on top of the thin +# 150 GiB rootfs; require headroom for rootfs plus chain before creating. +# (2026-11-27: local-lvm has ~206 GiB free, so +32 GiB headroom is the gate.) +storage_has_free "$CONTAINER_STORAGE" $((ROOT_DISK_GIB + 32)) || + die "container storage ${CONTAINER_STORAGE} has less than $((ROOT_DISK_GIB + 32)) GiB free" [[ -x "$BASELINE_HOOK" ]] || die "baseline hook is not executable: ${BASELINE_HOOK}" [[ -x "$POST_INSTALL_HOOK" ]] || die "post-install hook is not executable: ${POST_INSTALL_HOOK}"