Fix img truncate

This commit is contained in:
2026-02-05 12:59:07 +07:00
parent 4a2fa5d7e9
commit 5f3cb967ea

View File

@@ -88,7 +88,7 @@ luks_format() {
log "Creating container: $img ($size)" log "Creating container: $img ($size)"
log "→ Allocating sparse file" log "→ Allocating sparse file"
dd if=/dev/zero of="$img" bs=1M count=0 seek="${size%[KMGT]}" status=none truncate -s "$size" "$img"
sync sync
log "→ Formatting LUKS2 (cipher=$CIPHER, pbkdf=argon2id)" log "→ Formatting LUKS2 (cipher=$CIPHER, pbkdf=argon2id)"