[virt-install PATCH v2 10/14] installertreemedia: Add unattended_data to the class

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



unattended_data will be used when we add support for unattended
installations. It'll be passed down to the helper that's responsible for
actually generating the script and the kernel command line to be used
with it during prepare(); nevertheless, the addition does nothing right
now.

Together with the addition of the unattended_data, a setter has been
added.

Signed-off-by: Fabiano Fidêncio <fidencio@xxxxxxxxxx>
---
 virtinst/installertreemedia.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/virtinst/installertreemedia.py b/virtinst/installertreemedia.py
index 3162e717..642946d9 100644
--- a/virtinst/installertreemedia.py
+++ b/virtinst/installertreemedia.py
@@ -79,6 +79,8 @@ class InstallerTreeMedia(object):
         self._tmpfiles = []
         self._tmpvols = []
 
+        self._unattended_data = None
+
         self._media_type = MEDIA_ISO
         if (not self.conn.is_remote() and
             os.path.exists(self.location) and
@@ -166,7 +168,13 @@ class InstallerTreeMedia(object):
     # Public API #
     ##############
 
+    def set_unattended_data(self, unattended_data):
+        self._unattended_data = unattended_data
+
     def prepare(self, guest, meter):
+        if self._unattended_data:
+            pass
+
         fetcher = self._get_fetcher(guest, meter)
         return self._prepare_kernel_url(guest, fetcher)
 
-- 
2.20.1

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list




[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux