Fix img truncate
This commit is contained in:
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user