Skip to content

Commit

Permalink
Use truncate instead of fallocate
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptoluks authored and astro committed Apr 15, 2024
1 parent 537ea9b commit a1341f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ rec {
touch '${image}'
# Mark NOCOW
chattr +C '${image}' || true
fallocate -l${toString size}MiB '${image}'
truncate -s ${toString size}M '${image}'
mkfs.${fsType} ${labelArgument} '${image}'
fi
'')));
Expand Down

0 comments on commit a1341f7

Please sign in to comment.