From 31b3d6ea06b301530fc45e4deb27750e1373f6a3 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 24 Aug 2022 09:29:48 -0400 Subject: [PATCH] Move manifest data into dedicated file --- confluent_server/confluent/osimage.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/confluent_server/confluent/osimage.py b/confluent_server/confluent/osimage.py index 6814ee24..7c1bd17e 100644 --- a/confluent_server/confluent/osimage.py +++ b/confluent_server/confluent/osimage.py @@ -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):