diff --git a/confluent_server/bin/osimage b/confluent_server/bin/osimage index fb0cd0a0..7b4dbf2f 100644 --- a/confluent_server/bin/osimage +++ b/confluent_server/bin/osimage @@ -136,8 +136,12 @@ def initialize(cmdset): if res: sys.stderr.write('Error occurred while packing site initramfs') sys.exit(1) + tmptarname = tmpname.replace('cpio', 'tgz') + tarcmd = ['tar', '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: for cafile in glob.glob('/var/lib/confluent/public/site/ssh/*.ca'): @@ -149,7 +153,7 @@ def initialize(cmdset): # ok, also need to think on how to handle getinstalldisk if not os.path.exists('/etc/confluent/srvcert.pem'): subprocess.check_call(['collective', 'gencert']) - # TODO: check selinux and segetbool for httpd_can_network_connect + # TODO: check selinux and segetbool for httpd_can_network_connect # tftp-server available and enabled? # httpd available and enabled?