Move copy clt to before appling templates

master3.3
Mike Hiretsky 14 years ago
parent 7c30b1720a
commit d66e042586

@ -1504,6 +1504,12 @@ the system") + " (yes/no)"
targetDistr.installFrom(sourceDistr)
self.printByResult(True)
# copy clt files from current system
self.printMessageForTest(_("Coping clt templates to new system"))
cltCpy = cltCopy(target=targetDistr.getDirectory())
for directory in self.clVars.Get('cl_template_clt_path'):
cltCpy.performCopy(directory)
self.printByResult(True)
# join templates
self.printMessageForTest(_("Updating config"))
self.applyTemplates(targetDistr.getDirectory())
@ -1526,11 +1532,6 @@ the system") + " (yes/no)"
self.prepareBoot(targetDistr)
self.printByResult(True)
# optimize initrd
self.printMessageForTest(_("Coping clt templates to new system"))
cltCpy = cltCopy(target=targetDistr.getDirectory())
for directory in self.clVars.Get('cl_template_clt_path'):
cltCpy.performCopy(directory)
self.printByResult(True)
self.printMessageForTest(_("Creating new initrd file"))
self.printByResult(self.cleanInitrd())
else:

Loading…
Cancel
Save