From f13f4526fa4aed7e1a29d1033df27e7356750848 Mon Sep 17 00:00:00 2001 From: Dongsu Park Date: Tue, 30 Jul 2019 13:43:23 +0200 Subject: [PATCH] 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. --- build_torcx_store | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_torcx_store b/build_torcx_store index 2b1562a046..926182974d 100755 --- a/build_torcx_store +++ b/build_torcx_store @@ -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