1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-11 09:04:01 +03:00

image-builder: Freeze time with faketime

Otherwise, even on simple images, zero-crossing to the next second caused
impurities in the build.
This commit is contained in:
Samuel Dionne-Riel 2019-08-31 18:06:12 -04:00
parent 7991a96bf4
commit 32c93bb9a7
2 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ makeFilesystem (args // {
'';
copyPhase = ''
faketime "1970-01-01 00:00:00" \
faketime -f "1970-01-01 00:00:00" \
make_ext4fs \
-L $partName \
-l $size \

View File

@ -19,7 +19,7 @@ makeFilesystem (args // {
];
filesystemPhase = ''
faketime "1970-01-01 00:00:00" mkfs.vfat \
faketime -f "1970-01-01 00:00:00" mkfs.vfat \
-F 32 \
-i $partitionID \
-n $partName \
@ -29,7 +29,7 @@ makeFilesystem (args // {
copyPhase = ''
for f in ./* ./.*; do
if [[ "$f" != "./." && "$f" != "./.." ]]; then
faketime "1970-01-01 00:00:00" \
faketime -f "1970-01-01 00:00:00" \
mcopy -psv -i "$img" "$f" ::
fi
done