__init__ treebuilder fixup: yes, we need to backup installtree
This commit is contained in:
parent
b436479f97
commit
79f2a8e663
@ -18,7 +18,7 @@
|
|||||||
#
|
#
|
||||||
# Red Hat Author(s): Martin Gracik <mgracik@redhat.com>
|
# Red Hat Author(s): Martin Gracik <mgracik@redhat.com>
|
||||||
# David Cantrell <dcantrell@redhat.com>
|
# David Cantrell <dcantrell@redhat.com>
|
||||||
#
|
# Will Woods <wwoods@redhat.com>
|
||||||
|
|
||||||
# set up logging
|
# set up logging
|
||||||
import logging
|
import logging
|
||||||
@ -274,7 +274,9 @@ class Lorax(BaseLoraxClass):
|
|||||||
discinfo = DiscInfo(self.product.release, self.arch.basearch)
|
discinfo = DiscInfo(self.product.release, self.arch.basearch)
|
||||||
discinfo.write(joinpaths(self.outputdir, ".discinfo"))
|
discinfo.write(joinpaths(self.outputdir, ".discinfo"))
|
||||||
|
|
||||||
# XXX do we need to backup installtree here?
|
logger.info("backing up installroot")
|
||||||
|
installroot = joinpaths(self.workdir, "installroot")
|
||||||
|
linktree(self.installtree.root, installroot)
|
||||||
|
|
||||||
logger.info("getting list of not required packages")
|
logger.info("getting list of not required packages")
|
||||||
removepkgs = template.getdata("remove", mode="lines")
|
removepkgs = template.getdata("remove", mode="lines")
|
||||||
@ -291,7 +293,7 @@ class Lorax(BaseLoraxClass):
|
|||||||
|
|
||||||
logger.info("preparing to build output tree and boot images")
|
logger.info("preparing to build output tree and boot images")
|
||||||
treebuilder = TreeBuilder(self.product, self.arch,
|
treebuilder = TreeBuilder(self.product, self.arch,
|
||||||
self.installtree.root, self.outputdir)
|
installroot, self.outputdir)
|
||||||
|
|
||||||
# TODO: different image styles may do this part differently
|
# TODO: different image styles may do this part differently
|
||||||
logger.info("rebuilding initramfs images")
|
logger.info("rebuilding initramfs images")
|
||||||
|
Loading…
Reference in New Issue
Block a user