Use xorrisofs for creating ISOs when needed
A new configuration *createiso_use_xorrisofs* is added to determine which tool to use for creating ISOs. By default, createiso_use_xorrisofs = False and genisoimage will be used. When set to True, xorrisofs will be used. JIRA: RHELCMP-2875 Fixes: https://pagure.io/pungi/issue/1130 Signed-off-by: Haibo Lin <hlin@redhat.com>
This commit is contained in:
parent
c27e21ccf8
commit
4c88e7dc0e
7 changed files with 33 additions and 4 deletions
|
|
@ -171,6 +171,7 @@ class CreateisoPhase(PhaseLoggerMixin, PhaseBase):
|
|||
arch=arch,
|
||||
supported=self.compose.supported,
|
||||
hfs_compat=self.compose.conf["iso_hfs_ppc64le_compatible"],
|
||||
use_xorrisofs=self.compose.conf.get("createiso_use_xorrisofs"),
|
||||
)
|
||||
|
||||
if bootable:
|
||||
|
|
@ -326,7 +327,11 @@ def add_iso_to_metadata(
|
|||
def run_createiso_command(
|
||||
num, compose, bootable, arch, cmd, mounts, log_file, with_jigdo=True
|
||||
):
|
||||
packages = ["coreutils", "genisoimage", "isomd5sum"]
|
||||
packages = [
|
||||
"coreutils",
|
||||
"xorriso" if compose.conf.get("createiso_use_xorrisofs") else "genisoimage",
|
||||
"isomd5sum",
|
||||
]
|
||||
if with_jigdo and compose.conf["create_jigdo"]:
|
||||
packages.append("jigdo")
|
||||
if bootable:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue