Create and use separate installroot directory

The one provided by pungi may be poluted already,
and we don't want this to be left in the initrd.img.
This commit is contained in:
Martin Gracik 2010-11-16 13:33:50 +01:00
parent d888225dd7
commit 1084413b6b

View File

@ -41,6 +41,12 @@ class LoraxYumHelper(object):
def __init__(self, yb):
self.yb = yb
# create our own installroot, the pungi one may be poluted
installroot = joinpaths(self.yb.conf.installroot, "installroot")
os.makedirs(installroot)
self.yb.conf.installroot = installroot
self.installroot = self.yb.conf.installroot
self.installed_packages = self.get_packages("installed")