build_torcx_store: get selinux context included in torcx tarballs

So far build_torcx_store has not included any selinux context
in the tarball, because it ran without `--selinux` option.
Let's add the option to fix that.
This commit is contained in:
Dongsu Park 2019-07-30 13:43:23 +02:00
parent ab637f03cf
commit f13f4526fa

View File

@ -190,7 +190,7 @@ function torcx_package() {
fi
tmpfile="${BUILD_DIR}/${name}:${version}.torcx.tgz"
tar --force-local -C "${tmppkgroot}" -czf "${tmpfile}" .
tar --force-local --selinux --xattrs -C "${tmppkgroot}" -czf "${tmpfile}" .
sha512sum=$(sha512sum "${tmpfile}" | awk '{print $1}')
# TODO(euank): this opaque digest, if it were reproducible, could save