From 1084413b6b7fe964dea805ae58b5e5c4c4033da6 Mon Sep 17 00:00:00 2001 From: Martin Gracik Date: Tue, 16 Nov 2010 13:33:50 +0100 Subject: [PATCH] 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. --- src/pylorax/yumhelper.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pylorax/yumhelper.py b/src/pylorax/yumhelper.py index e3715185..aacbf65e 100644 --- a/src/pylorax/yumhelper.py +++ b/src/pylorax/yumhelper.py @@ -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")