diff --git a/confluent_server/bin/osimage b/confluent_server/bin/osimage index 7b4dbf2f..e580cff2 100644 --- a/confluent_server/bin/osimage +++ b/confluent_server/bin/osimage @@ -137,7 +137,7 @@ def initialize(cmdset): sys.stderr.write('Error occurred while packing site initramfs') sys.exit(1) tmptarname = tmpname.replace('cpio', 'tgz') - tarcmd = ['tar', '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')