Do not require enabled runroot option for live_images phase.
This commit is contained in:
parent
ba39435bf6
commit
39c073abf9
@ -158,16 +158,12 @@ class CreateLiveImageThread(WorkerThread):
|
||||
def process(self, item, num):
|
||||
compose, cmd = item
|
||||
|
||||
runroot = compose.conf.get("runroot", False)
|
||||
log_file = compose.paths.log.log_file(cmd["arch"], "createiso-%s" % os.path.basename(cmd["iso_path"]))
|
||||
|
||||
msg = "Creating ISO (arch: %s, variant: %s): %s" % (cmd["arch"], cmd["variant"], os.path.basename(cmd["iso_path"]))
|
||||
self.pool.log_info("[BEGIN] %s" % msg)
|
||||
|
||||
if runroot:
|
||||
# run in a koji build root
|
||||
|
||||
koji_wrapper = KojiWrapper(compose.conf["koji_profile"])
|
||||
koji_wrapper = KojiWrapper()
|
||||
name, version = compose.compose_id.rsplit("-", 1)
|
||||
name = cmd["name"] or name
|
||||
version = cmd["version"] or version
|
||||
@ -175,7 +171,7 @@ class CreateLiveImageThread(WorkerThread):
|
||||
if cmd["specfile"] and not cmd["scratch"]:
|
||||
# Non scratch build are allowed only for rpm wrapped images
|
||||
archive = True
|
||||
target = compose.conf["live_target"]
|
||||
target = compose.conf.get("live_target", "rhel-7.0-candidate") # compatability for hardcoded target
|
||||
koji_cmd = koji_wrapper.get_create_image_cmd(name, version, target, cmd["build_arch"], cmd["ks_file"], cmd["repos"], image_type="live", wait=True, archive=archive, specfile=cmd["specfile"])
|
||||
|
||||
# avoid race conditions?
|
||||
@ -196,9 +192,6 @@ class CreateLiveImageThread(WorkerThread):
|
||||
# write checksum and manifest
|
||||
run(cmd["cmd"])
|
||||
|
||||
else:
|
||||
raise RuntimeError("NOT IMPLEMENTED")
|
||||
|
||||
self.pool.log_info("[DONE ] %s" % msg)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user