Commit e2bade70 authored by segfault's avatar segfault Committed by intrigeri
Browse files

Also reset timestamps of symlinks (refs: #15985)

parent 52256b0d
......@@ -323,9 +323,9 @@ class ImageCreator(object):
def reset_timestamps(self):
logger.info("Resetting timestamps")
for root, dirs, files in os.walk(self.mountpoint):
os.utime(root, (0, 0))
os.utime(root, (0, 0), follow_symlinks=False)
for file in files:
os.utime(os.path.join(root, file), (0, 0))
os.utime(os.path.join(root, file), (0, 0), follow_symlinks=False)
def set_guids(self):
logger.info("Setting disk and partition GUID")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment