createiso: Make media.repo sticky

This means the file will be included on all ISOs when splitting.

JIRA: COMPOSE-3787
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2019-09-02 14:51:25 +02:00
parent 7aa65f00c2
commit b8e41d9b1b

View File

@ -326,7 +326,7 @@ def split_iso(compose, arch, variant, no_split=False, logger=None):
extra_files_dir = compose.paths.work.extra_files_dir(arch, variant) extra_files_dir = compose.paths.work.extra_files_dir(arch, variant)
# scan extra files to mark them "sticky" -> they'll be on all media after split # scan extra files to mark them "sticky" -> they'll be on all media after split
extra_files = set() extra_files = set(["media.repo"])
for root, dirs, files in os.walk(extra_files_dir): for root, dirs, files in os.walk(extra_files_dir):
for fn in files: for fn in files:
path = os.path.join(root, fn) path = os.path.join(root, fn)