From d4f46a53e0242022bc0a17bf65c22527b47d690a Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 10 Jun 2020 09:42:44 -0400 Subject: [PATCH] Fix tar generation of site site content was nat being correctly packed to tgz. --- confluent_server/bin/osimage | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/confluent_server/bin/osimage b/confluent_server/bin/osimage index e580cff2..9349c62a 100644 --- a/confluent_server/bin/osimage +++ b/confluent_server/bin/osimage @@ -136,11 +136,11 @@ def initialize(cmdset): if res: sys.stderr.write('Error occurred while packing site initramfs') sys.exit(1) + os.rename(tmpname, '/var/lib/confluent/public/site/initramfs.cpio') tmptarname = tmpname.replace('cpio', 'tgz') - tarcmd = ['tar', '--transform=s|^|etc/', '-czf', tmptarname] + topack + tarcmd = ['tar', '--transform=s|^|etc/|', '-czf', tmptarname] + topack subprocess.check_call(tarcmd) os.chdir(opath) - os.rename(tmpname, '/var/lib/confluent/public/site/initramfs.cpio') os.rename(tmptarname, '/var/lib/confluent/public/site/initramfs.tgz') if cmdset.k: with open('/etc/ssh/ssh_known_hosts', 'a+b') as skh: