1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-17 04:51:31 +03:00
mobile-nixos/lib/image-builder
Samuel Dionne-Riel c0001af576 image-builder: makeFilesystem: reviews minimum size with blockSize
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.
2019-09-02 16:29:07 -04:00
..
lib image-builder: Refactors the test mode... 2019-08-30 22:43:30 -04:00
tests image-builder: Refactors the test mode... 2019-08-30 22:43:30 -04:00
default.nix image-builder: Refactors the test mode... 2019-08-30 22:43:30 -04:00
makeExt4.nix image-builder: Freeze time with faketime 2019-08-31 18:06:12 -04:00
makeFAT32.nix image-builder: Freeze time with faketime 2019-08-31 18:06:12 -04:00
makeFilesystem.nix image-builder: makeFilesystem: reviews minimum size with blockSize 2019-09-02 16:29:07 -04:00
makeMBR.nix image-builder: makeMBR: make reproducible 2019-08-31 15:49:05 -04:00
test.rb image-builder: Refactors the test mode... 2019-08-30 22:43:30 -04:00