assemblers/tar: include selinux, acls and xattrs

All of these options, i.e. SELinux labels, ACLs and extended
attributes (xattrs), are opt-in and thus were currently ignored.
This lead to trees that had their selinux labels missing and
were thus incorrect.
This commit is contained in:
Christian Kellner 2021-01-25 19:37:53 +00:00
parent 33283853e9
commit 920f46880b

View file

@ -58,6 +58,13 @@ def main(tree, output_dir, options):
"XZ_OPT": "--threads 0"
}
# SELinux context, ACLs and extended attributes
extra_args += [
"--selinux",
"--acls",
"--xattrs", "--xattrs-include", "*",
]
# Set up the tar command.
tar_cmd = [
"tar",