Merge pull request #16 from flatcar-linux/dongsu/fix-torcx-selinux

build_torcx_store: get selinux context included in torcx tarballs
This commit is contained in:
Dongsu Park 2019-08-08 17:20:33 +02:00 committed by GitHub
commit fe7a24fab6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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