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

Move manifest data into dedicated file

This commit is contained in:
Jarrod Johnson 2022-08-24 09:29:48 -04:00
parent 42b4944542
commit 31b3d6ea06

View File

@ -693,9 +693,10 @@ def generate_stock_profiles(defprofile, distpath, targpath, osname,
if profdata:
with open('{0}/profile.yaml'.format(dirname), 'w') as yout:
yout.write(profdata)
yout.write('# The data below facilitates detecting customization during osdeploy rebase\n')
manifestdata = {'distdir': srcname, 'disthashes': hmap}
yout.write(yaml.dump(manifestdata, default_flow_style=False))
with open('{0}/manifest.yaml'.format(dirname), 'w') as yout:
yout.write('# This manifest enables rebase to know original source of profile data and if any customizations have been done\n')
manifestdata = {'distdir': srcname, 'disthashes': hmap}
yout.write(yaml.dump(manifestdata, default_flow_style=False))
for initrd in os.listdir('{0}/initramfs'.format(defprofile)):
fullpath = '{0}/initramfs/{1}'.format(defprofile, initrd)
if os.path.isdir(fullpath):