Generated iso now called ...-cloudinit.iso. Signed-off-by: Athina Plaskasoviti <athina.plaskasoviti@xxxxxxxxx> --- virtinst/install/installerinject.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/virtinst/install/installerinject.py b/virtinst/install/installerinject.py index 812f9829..ca4237e1 100644 --- a/virtinst/install/installerinject.py +++ b/virtinst/install/installerinject.py @@ -93,8 +93,12 @@ def perform_cdrom_injections(injections, scratchdir, cloudinit=False): """ Insert files into the root directory of a generated cdrom """ + if cloudinit: + iso_suffix = "-cloudinit.iso" + else: + iso_suffix = "-unattended.iso" fileobj = tempfile.NamedTemporaryFile( - prefix="virtinst-", suffix="-unattended.iso", + prefix="virtinst-", suffix=iso_suffix, dir=scratchdir, delete=False) iso = fileobj.name -- 2.20.1 _______________________________________________ virt-tools-list mailing list virt-tools-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/virt-tools-list