Fix pungi-patch-iso to work with a new compose top dir solution

get_graft_points has changed but without adapting pungi-patch-iso utility so the
exception was raised when executed.

Fixes: https://pagure.io/pungi/issue/1438
Signed-off-by: Jiri Konecny <jkonecny@redhat.com>
This commit is contained in:
Jiri Konecny 2020-08-19 14:12:16 +02:00 committed by Lubomír Sedlář
parent 981b69c699
commit 8d4fea7890

View File

@ -94,7 +94,7 @@ def run(log, opts):
volume_id = opts.volume_id or iso.get_volume_id(opts.source)
# create graft points from mounted source iso + overlay dir
graft_points = iso.get_graft_points([work_dir] + opts.dirs)
graft_points = iso.get_graft_points(work_dir, [work_dir] + opts.dirs)
# if ks.cfg is detected, patch syslinux + grub to use it
if "ks.cfg" in graft_points:
log.info("Adding ks.cfg to boot configs")