diff --git a/src/pylorax/imgutils.py b/src/pylorax/imgutils.py index 9e88fbb3..35165f1b 100644 --- a/src/pylorax/imgutils.py +++ b/src/pylorax/imgutils.py @@ -284,7 +284,7 @@ def copytree(src, dest, preserve=True): If preserve is False, uses cp -R (useful for modeless filesystems) raises CalledProcessError if copy fails.''' logger.debug("copytree %s %s", src, dest) - cp = ["cp", "-a"] if preserve else ["cp", "-R", "-L"] + cp = ["cp", "-a"] if preserve else ["cp", "-R", "-L", "--preserve=timestamps"] cp += [join(src, "."), os.path.abspath(dest)] runcmd(cp)