Skip to content

Commit

Permalink
Fail if all three iso tools are missing (#683)
Browse files Browse the repository at this point in the history
  • Loading branch information
lhp-nemlig authored Jun 4, 2024
1 parent de97a76 commit a9c15af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kvirt/common/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1899,7 +1899,7 @@ def make_iso(name, tmpdir, userdata, metadata, netdata, openstack=False, combust
x.write(userdata)
with open(f"{tmpdir}/meta-data", 'w') as y:
y.write(metadata)
if which('mkisofs') is None and which('genisoimage') and which('xorrisofs') is None:
if which('mkisofs') is None and which('genisoimage') is None and which('xorrisofs') is None:
error("mkisofs, genisoimage or xorrisofs are required in order to create cloudinit iso")
sys.exit(1)
isocmd = 'genisoimage' if which('genisoimage') is not None else 'mkisofs' if which('mkisofs') is not None\
Expand Down

0 comments on commit a9c15af

Please sign in to comment.