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:
parent
7991a96bf4
commit
32c93bb9a7
@ -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 \
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user