patch-iso supports multiple graft directories

Pungi patch iso now supports multiple graft directories. This should
make usage more comfortable.

Signed-off-by: Jiri Konecny <jkonecny@redhat.com>
This commit is contained in:
Jiri Konecny 2019-04-12 15:09:53 +02:00
parent 479d17c033
commit 0cd089802f
No known key found for this signature in database
GPG key ID: 38F52F0E5C3FAD25
3 changed files with 9 additions and 5 deletions

View file

@ -92,7 +92,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.dir])
graft_points = iso.get_graft_points([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')