diff options
author | Gatis Paeglis <gatis.paeglis@qt.io> | 2016-08-04 10:06:46 +0200 |
---|---|---|
committer | Gatis Paeglis <gatis.paeglis@qt.io> | 2016-08-25 11:17:30 +0000 |
commit | b86f141a10eebbefc773be4c2b87e3e48635e56d (patch) | |
tree | cb8fb1f0eecadc79849563017b31f02219bec020 /classes/consistent_timestamps.bbclass | |
parent | 96e38aae6378c5139a1594af97bea5f20d131c61 (diff) | |
download | meta-boot2qt-b86f141a10eebbefc773be4c2b87e3e48635e56d.tar.gz |
ostree support: use EPOCH+1s timestamps
From OSTree's Release 2016.6 change log:
"Use OSTREE_TIMESTAMP (=1) for checked-out files
Is a quite interesting change - we previously used a
timestamp of zero, but Nix has apparently done better
with 1 for various reasons. This is a pretty subtle
change, so be on the lookout for regressions."
Change-Id: I8349fc52604603faef1c39bf88ba0e6591ae92a1
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
Diffstat (limited to 'classes/consistent_timestamps.bbclass')
-rw-r--r-- | classes/consistent_timestamps.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/consistent_timestamps.bbclass b/classes/consistent_timestamps.bbclass index 08cc401..1f560c2 100644 --- a/classes/consistent_timestamps.bbclass +++ b/classes/consistent_timestamps.bbclass | |||
@@ -28,8 +28,8 @@ | |||
28 | ############################################################################ | 28 | ############################################################################ |
29 | 29 | ||
30 | update_file_timestaps() { | 30 | update_file_timestaps() { |
31 | # Update file timestamp to 0 seconds since Epoch time. | 31 | # Update file timestamp to 1 second since Epoch time. |
32 | TZ=UTC find ${IMAGE_ROOTFS} -exec touch -h -m -t '197001010000' {} \; | 32 | TZ=UTC find ${IMAGE_ROOTFS} -exec touch -h -m -t '197001010000.01' {} \; |
33 | } | 33 | } |
34 | 34 | ||
35 | ROOTFS_POSTINSTALL_COMMAND += "update_file_timestaps; " | 35 | ROOTFS_POSTINSTALL_COMMAND += "update_file_timestaps; " |