[virt-tools-list] [virt-manager PATCH] cloudinit: Change iso suffix for cloud image installations

Athina Plaskasoviti athina.plaskasoviti at gmail.com
Mon Jul 8 06:04:37 UTC 2019


Generated iso now called ...-cloudinit.iso.

Signed-off-by: Athina Plaskasoviti <athina.plaskasoviti at gmail.com>
---
 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




More information about the virt-tools-list mailing list