On 12/13/21 22:02, Mike Frysinger wrote:

LC_COLLATE=C tar \
   --format=pax \
   --sort=name \
   --owner=0 --group=0 \
   --pax-option=exthdr.name=%d/PaxHeaders/%f,atime:=0,ctime:=0 \
   -cf foo.tar foo/

use of --mtime=0 is prob debatable.

tzdb uses --pax-option='delete=atime,delete=ctime' instead of the --pax-option you give, as this avoids generating unwanted and useless pax extended headers. It also uses --numeric-owner. You might consider adding these options to your recipe.

This underscores the need for making this sort of thing more convenient.

Reply via email to