1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-17 04:51:31 +03:00
Commit Graph

7 Commits

Author SHA1 Message Date
Samuel Dionne-Riel
f7506b5ec8 image-builder: Filesystems can be post-processed 2020-03-31 00:33:16 -04:00
Samuel Dionne-Riel
b4600a4d23 image-builder: makeFilesystem: prepares API for adjusting sizes 2019-09-04 00:48:58 -04:00
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
Samuel Dionne-Riel
33c2ecdeae image-builder: Refactors the test mode...
Using an override is more likely to pass the smell test than a magic
environment variable.
2019-08-30 22:43:30 -04:00
Samuel Dionne-Riel
763a912d3c image-builder: minimumSize is a filesystem specific option 2019-08-28 21:54:12 -04:00
Samuel Dionne-Riel
da8f7db4ec makeFilesystem: Implements copyPhase internals 2019-08-28 21:31:33 -04:00
Samuel Dionne-Riel
eb8ca1f685 image-builder: handle size and begin work on populate commands 2019-08-28 20:50:28 -04:00