diff options
author | Cole Robinson <crobinso@redhat.com> | 2019-07-02 15:39:51 -0400 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2019-07-03 13:12:19 -0400 |
commit | 5312a9611b61801d4a62d1959e65cf8d50c38eb1 (patch) | |
tree | 21c18afe8e81b688aaf74a5ba6fd5953cc8e172e /virt-install | |
parent | f3e7b9a8f09633632632041c4bef091151d7eb33 (diff) | |
download | virt-manager-5312a9611b61801d4a62d1959e65cf8d50c38eb1.tar.gz |
virt-install: Revive --wait 0 as alias for --noautoconsole
This was the behavior prior to last release, and we received
a bug report about it. Revive it, but warn about the recommended way
to do it
https://bugzilla.redhat.com/show_bug.cgi?id=1724287
Diffstat (limited to 'virt-install')
-rwxr-xr-x | virt-install | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/virt-install b/virt-install index ee2b9006..af6c75bf 100755 --- a/virt-install +++ b/virt-install @@ -258,6 +258,14 @@ def convert_old_features(options): options.features = [",".join(opts)] +def convert_wait_zero(options): + # Historical back compat, --wait 0 is identical to --noautoconsole + if options.wait == 0: + log.warning("Treating --wait 0 as --noautoconsole") + options.autoconsole = False + options.wait = None + + ################################## # Install media setup/validation # ################################## @@ -972,6 +980,7 @@ def main(conn=None): convert_old_features(options) convert_old_cpuset(options) convert_old_init(options) + convert_wait_zero(options) set_test_stub_options(options) convert_old_os_options(options) |