run() fix: inroot could exist if we're running with --force
This commit is contained in:
parent
511deeaea9
commit
bbf3d23513
@ -166,7 +166,8 @@ class Lorax(BaseLoraxClass):
|
||||
|
||||
# create an install root
|
||||
self.inroot = joinpaths(ybo.conf.installroot, "installroot")
|
||||
os.makedirs(self.inroot)
|
||||
if not os.path.isdir(self.inroot):
|
||||
os.makedirs(self.inroot)
|
||||
logger.debug("using install root: {0}".format(self.inroot))
|
||||
ybo.conf.installroot = self.inroot
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user