plat = copy.copy(self.image_meta[img['Platform']])
conf.update(plat)
conf.update(img)
- lval = ['Repos', 'Groups', 'PostScripts', 'NoChrootScripts', 'RemovePackages', 'ExtraPackages', 'RunScripts', 'EnvScripts']
+ lval = ['Repos', 'Groups', 'PostScripts', 'NoChrootScripts', 'RemovePackages', 'ExtraPackages', 'RunScripts', 'EnvScripts', 'UmountScripts']
lvald = {}
for l in lval:
full = []
else:
raise KSMetaError('%s/scripts/%s.env not found, aborting.' %(meta_root, scr ))
+ umountscript = ""
+ for scr in conf['UmountScripts']:
+ if os.path.exists('%s/scripts/%s.umount' %(meta_root,scr)):
+ f = open('%s/scripts/%s.umount' %(meta_root, scr ), 'r')
+ umountscript += f.read()
+ umountscript += "\n"
+ f.close()
+ else:
+ raise KSMetaError('%s/scripts/%s.umount not found, aborting.' %(meta_root, scr ))
+
ptab = ""
for g in [ plat, img ]:
if g.has_key("Part"):
conf['Post'] = postscript
conf['NoChroot'] = nochrootscript
conf['Run'] = runscript
+ conf['Umount'] = umountscript
if envscript:
conf['Env'] = envscript
return conf