2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-25 19:10:10 +00:00

Fix tgz generation

Previous attempt was duplicating files in the
archive, which caused vmware kernel to
fail to unpack them.
This commit is contained in:
Jarrod Johnson 2020-06-10 12:17:51 -04:00
parent 783c6ce7b6
commit 873190cae9

View File

@ -138,7 +138,7 @@ def initialize(cmdset):
sys.exit(1)
os.rename(tmpname, '/var/lib/confluent/public/site/initramfs.cpio')
tmptarname = tmpname.replace('cpio', 'tgz')
tarcmd = ['tar', '-czf', tmptarname] + topack
tarcmd = ['tar', '-czf', tmptarname, 'ssh', 'tls']
subprocess.check_call(tarcmd)
os.chdir(opath)
os.rename(tmptarname, '/var/lib/confluent/public/site/initramfs.tgz')