[virt-tools-list] [virt-install PATCH v2 14/14] virt-install: Make --unattended useful
Fabiano Fidêncio
fidencio at redhat.com
Fri Feb 22 08:40:21 UTC 2019
--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 at redhat.com>
---
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
More information about the virt-tools-list
mailing list