From 5f3cb967ea579408f7a365af76a985de2cee0b84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D1=91=D0=BC=20=D0=9A=D0=BE=D0=BA=D0=BE?= =?UTF-8?q?=D1=81?= Date: Thu, 5 Feb 2026 12:59:07 +0700 Subject: [PATCH] Fix img truncate --- sarcophagus | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sarcophagus b/sarcophagus index 7150cd1..2205dd2 100755 --- a/sarcophagus +++ b/sarcophagus @@ -88,7 +88,7 @@ luks_format() { log "Creating container: $img ($size)" log "→ Allocating sparse file" - dd if=/dev/zero of="$img" bs=1M count=0 seek="${size%[KMGT]}" status=none + truncate -s "$size" "$img" sync log "→ Formatting LUKS2 (cipher=$CIPHER, pbkdf=argon2id)"