[virt-tools-list] [virt-manager PATCH v2 24/25] installertreemedia: Pass a media to generate_install_script()

Fabiano Fidêncio fidencio at redhat.com
Tue Feb 26 09:43:55 UTC 2019


During prepare, let's pass down the media to generate_install_script()
in order to properly perform an unattended installation based on the
media.

Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
 virtinst/installertreemedia.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/virtinst/installertreemedia.py b/virtinst/installertreemedia.py
index 4d77d0dd..3547a477 100644
--- a/virtinst/installertreemedia.py
+++ b/virtinst/installertreemedia.py
@@ -189,7 +189,7 @@ class InstallerTreeMedia(object):
         cmdline = None
         if self._unattended_data:
             path, cmdline = generate_install_script(
-                    guest, self._unattended_data)
+                    guest, self._unattended_data, self._media)
 
             self.initrd_injections.append(path)
             self._tmpfiles.append(path)
-- 
2.20.1




More information about the virt-tools-list mailing list