From: Daan De Meyer Date: Thu, 18 Jan 2024 09:24:45 +0000 (+0100) Subject: Don't preserve timestamps when copying skeleton/extra trees X-Git-Tag: v20.2~5^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d80c084544f2767585e27b6e7f9e0df4e972826;p=thirdparty%2Fmkosi.git Don't preserve timestamps when copying skeleton/extra trees If timestamps should be preserved, a tar archive should be used. Timestamps in directories are very likely to be arbitrary and there's no point in preserving them. This doesn't impact reproducible builds as we have SourceDateEpoch= for that. --- diff --git a/mkosi/tree.py b/mkosi/tree.py index be156f707..19afc98c8 100644 --- a/mkosi/tree.py +++ b/mkosi/tree.py @@ -85,7 +85,7 @@ def copy_tree( "cp", "--recursive", "--dereference" if dereference else "--no-dereference", - f"--preserve=mode,timestamps,links{',ownership,xattr' if preserve else ''}", + f"--preserve=mode,links{',timestamps,ownership,xattr' if preserve else ''}", "--reflink=auto", src, dst, ]