diff --git a/zz-build/build-all.sh b/zz-build/build-all.sh index 7c9e8c8..9abe042 100755 --- a/zz-build/build-all.sh +++ b/zz-build/build-all.sh @@ -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 diff --git a/zz-build/usr/bin/lxc-pack b/zz-build/usr/bin/lxc-pack index 84824fe..7f1a24b 100755 --- a/zz-build/usr/bin/lxc-pack +++ b/zz-build/usr/bin/lxc-pack @@ -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))