Use pungi's installroot rather than making our own (#722481)
Apparently messing with the installroot causes some serious problems with yum, so.. don't do that.
This commit is contained in:
parent
080a32b273
commit
8f9f9944fe
@ -154,13 +154,8 @@ class Lorax(BaseLoraxClass):
|
|||||||
if not isinstance(ybo, yum.YumBase):
|
if not isinstance(ybo, yum.YumBase):
|
||||||
logger.critical("no yum base object")
|
logger.critical("no yum base object")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
self.inroot = ybo.conf.installroot
|
||||||
# create an install root
|
|
||||||
self.inroot = joinpaths(ybo.conf.installroot, "installroot")
|
|
||||||
if not os.path.isdir(self.inroot):
|
|
||||||
os.makedirs(self.inroot)
|
|
||||||
logger.debug("using install root: {0}".format(self.inroot))
|
logger.debug("using install root: {0}".format(self.inroot))
|
||||||
ybo.conf.installroot = self.inroot
|
|
||||||
|
|
||||||
logger.info("setting up build architecture")
|
logger.info("setting up build architecture")
|
||||||
self.arch = ArchData(get_buildarch(ybo))
|
self.arch = ArchData(get_buildarch(ybo))
|
||||||
|
Loading…
Reference in New Issue
Block a user