1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-17 21:11:34 +03:00
Commit Graph

11 Commits

Author SHA1 Message Date
Samuel Dionne-Riel
ed10664fc9 image-builder: makeFAT32: Let mkfs.fat set the FAT type
It turns out the warnings it spits out when forcing FAT32 with too few
clusters is not for nothing. At the very least the Raspberry Pi 3B does
not like the forced FAT 32. Though, it was validated that a large enough
FAT32 partition is fine with the Raspberry Pi 3B.
2019-09-04 23:07:19 -04:00
Samuel Dionne-Riel
f9a719d00f image-builder: makeFAT32: Adjusts sizes
The factor was derived from first making a few test images, finding
there was a common thread, and then looking at what parts of FAT32 were
generated, and how they were generated. That was fun. (Yes, really.)
2019-09-04 00:49:13 -04:00
Samuel Dionne-Riel
e008cb416c image-builder: makeFAT32: use block size
In addition, present the sector size as an option.

The sector size is required to set a block size in bytes, so giving the
option to the end-user is probably for the best.

The values here were chosen to keep the builder compatible with the
existing tests.

In addition, the values are quite optimized for smaller filesystem
images, e.g. building a FIRMWARE partition for the Raspberry Pi.
2019-09-02 17:48:03 -04:00
Samuel Dionne-Riel
32c93bb9a7 image-builder: Freeze time with faketime
Otherwise, even on simple images, zero-crossing to the next second caused
impurities in the build.
2019-08-31 18:06:12 -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
9b38d6bbf6 image-builder: makeFAT32: make FAT32 image more reproducible
The current code in <nixpkgs> is reproducible since the date/time comes
from the store. With my particular tests, the date/time is the current
one since I'm using `>` to create test files.
2019-08-28 21:47:40 -04:00
Samuel Dionne-Riel
391f710a46 image-builder: makeFAT32 actually FAT32 2019-08-28 21:46:35 -04:00
Samuel Dionne-Riel
af17598d8f makeFAT32: Implements copyPhase 2019-08-28 21:31:45 -04:00
Samuel Dionne-Riel
eb8ca1f685 image-builder: handle size and begin work on populate commands 2019-08-28 20:50:28 -04:00
Samuel Dionne-Riel
549f0b55eb WIP adds makeFAT32 2019-08-27 14:14:57 -04:00