mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-17 04:51:31 +03:00
c0001af576
First of all, `du -s` will always combine the sizes into the multiple of its given --block-size, so 4×1 byte files will show up as 1 block size (assuming a block size > 4). The expected size would have been at least one block size per file, so for 512, 512×4 thus 2048. With this change, we sum the sizes ourselves. This adds a new requirement to the filesystems, that they pass the block size to the generic builder, though this is good, as it will increases reproducibility. In addition, filesystems can present the option to users, allowing the user to set their block sizes as expected. |
||
---|---|---|
.. | ||
lib | ||
tests | ||
default.nix | ||
makeExt4.nix | ||
makeFAT32.nix | ||
makeFilesystem.nix | ||
makeMBR.nix | ||
test.rb |