aboutsummaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorGatis Paeglis <gatis.paeglis@qt.io>2016-08-04 10:06:46 +0200
committerGatis Paeglis <gatis.paeglis@qt.io>2016-08-25 11:17:30 +0000
commitb86f141a10eebbefc773be4c2b87e3e48635e56d (patch)
treecb8fb1f0eecadc79849563017b31f02219bec020 /classes
parent96e38aae6378c5139a1594af97bea5f20d131c61 (diff)
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')
-rw-r--r--classes/consistent_timestamps.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/consistent_timestamps.bbclass b/classes/consistent_timestamps.bbclass
index 08cc4010..1f560c21 100644
--- a/classes/consistent_timestamps.bbclass
+++ b/classes/consistent_timestamps.bbclass
@@ -28,8 +28,8 @@
############################################################################
update_file_timestaps() {
- # Update file timestamp to 0 seconds since Epoch time.
- TZ=UTC find ${IMAGE_ROOTFS} -exec touch -h -m -t '197001010000' {} \;
+ # Update file timestamp to 1 second since Epoch time.
+ TZ=UTC find ${IMAGE_ROOTFS} -exec touch -h -m -t '197001010000.01' {} \;
}
ROOTFS_POSTINSTALL_COMMAND += "update_file_timestaps; "