[virt-install PATCH v2 14/14] virt-install: Make --unattended useful

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

 



--unattedend now can be used to perform tree based installations.

The way it's implemented, it takes advantage of the code we currently
have for setting --os-variant install="location|cdrom".

Signed-off-by: Fabiano Fidêncio <fidencio@xxxxxxxxxx>
---
 virt-install | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/virt-install b/virt-install
index 0ccd3393..a904db2e 100755
--- a/virt-install
+++ b/virt-install
@@ -451,7 +451,7 @@ def build_installer(options, guest):
     has_installer = True
 
     if options.unattended:
-        fail(_("--unattended is not supported yet"))
+        options.os_variant.install = "location"
 
     if options.os_variant.install == "location":
         if not options.location:
@@ -492,7 +492,10 @@ def build_installer(options, guest):
     if cdrom and options.livecd:
         installer.livecd = True
     if options.unattended:
-        pass
+        unattended_data = cli.parse_unattended(options.unattended)
+        options.unattended = None
+
+        installer.set_unattended_data(unattended_data)
     else:
         if options.extra_args:
             installer.extra_args = options.extra_args
-- 
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