Use --xattrs in lxc-pack

This commit is contained in:
Disassembler 2018-10-25 22:09:57 +02:00
parent f9218366fa
commit 204318ef44
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499
2 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ cp etc/abuild.conf /etc/abuild.conf
cp usr/bin/abuild /usr/bin/abuild
cp usr/bin/fix-apk /usr/bin/fix-apk
cp usr/bin/lxc-build /usr/bin/lxc-build
cp usr/bin/lxc-pack /usr/bin/lxc-pack
mkdir /srv/build
# Supply /srv/build/repokey.rsa

View File

@ -38,7 +38,7 @@ def pack(pkg_file):
# Create archive
print('Archiving', meta['lxcpath'])
subprocess.run(['tar', 'cpf', tar_path, meta['lxcpath']], cwd=LXC_ROOT)
subprocess.run(['tar', 'cp', '--xattrs', '-f', tar_path, meta['lxcpath']], cwd=LXC_ROOT)
if '/' not in meta['lxcpath']:
print('Archiving setup files')
cwd = os.path.dirname(os.path.abspath(pkg_file))