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)"