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

Fix use of label in profile.yaml

This commit is contained in:
Jarrod Johnson 2021-06-14 16:55:32 -04:00
parent 0079e5c437
commit e6550d8160

View File

@ -367,7 +367,7 @@ def pack_image(opts, args):
'PRETTY_NAME=', '').replace('"', '')
label = '{0} ({1}'.format(prettyname, 'Diskless Boot')
with open(os.path.join(outdir, 'profile.yaml'), 'w') as profile:
profile.write('label: {0}\nkernelargs: quiet # confluent_imagemethod=untethered|tethered\n')
profile.write('label: {0}\nkernelargs: quiet # confluent_imagemethod=untethered|tethered\n'.format(label))
oscat = oshandler.oscategory
confdir = '/opt/confluent/lib/osdeploy/{}-diskless'.format(oscat)
os.symlink('{}/initramfs/addons.cpio'.format(confdir),