mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 09:32:21 +00:00
Move manifest data into dedicated file
This commit is contained in:
parent
42b4944542
commit
31b3d6ea06
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user