summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/plugins/imager/direct.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/wic/plugins/imager/direct.py')
-rw-r--r--scripts/lib/wic/plugins/imager/direct.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/lib/wic/plugins/imager/direct.py b/scripts/lib/wic/plugins/imager/direct.py
index 4d0b836ef6..685d19b30f 100644
--- a/scripts/lib/wic/plugins/imager/direct.py
+++ b/scripts/lib/wic/plugins/imager/direct.py
@@ -148,6 +148,9 @@ class DirectPlugin(ImagerPlugin):
148 self.updated_fstab_path = os.path.join(self.workdir, "fstab") 148 self.updated_fstab_path = os.path.join(self.workdir, "fstab")
149 with open(self.updated_fstab_path, "w") as f: 149 with open(self.updated_fstab_path, "w") as f:
150 f.writelines(fstab_lines) 150 f.writelines(fstab_lines)
151 if os.getenv('SOURCE_DATE_EPOCH'):
152 fstab_time = int(os.getenv('SOURCE_DATE_EPOCH'))
153 os.utime(self.updated_fstab_path, (fstab_time, fstab_time))
151 154
152 def _full_path(self, path, name, extention): 155 def _full_path(self, path, name, extention):
153 """ Construct full file path to a file we generate. """ 156 """ Construct full file path to a file we generate. """