diff options
author | Fabiano FidĂȘncio <fidencio@redhat.com> | 2019-02-22 09:40:21 +0100 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2019-03-05 16:38:22 -0500 |
commit | 49e21723b3a4d2984b4d66810bcdc4994e96d985 (patch) | |
tree | f7bf8e4c03222c19a735780790a83127e2860e6b /virt-install | |
parent | a0aebf77e88c81ef74416c4cc1bf8b28bdc182db (diff) | |
download | virt-manager-49e21723b3a4d2984b4d66810bcdc4994e96d985.tar.gz |
virt-install: Make --unattended useful
--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@redhat.com>
Diffstat (limited to 'virt-install')
-rwxr-xr-x | virt-install | 7 |
1 files 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 |