Skip to content

Commit a1341f7

Browse files
cryptoluksastro
authored andcommitted
Use truncate instead of fallocate
1 parent 537ea9b commit a1341f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ rec {
5555
touch '${image}'
5656
# Mark NOCOW
5757
chattr +C '${image}' || true
58-
fallocate -l${toString size}MiB '${image}'
58+
truncate -s ${toString size}M '${image}'
5959
mkfs.${fsType} ${labelArgument} '${image}'
6060
fi
6161
'')));

0 commit comments

Comments
 (0)