[virt-tools-list] [virt-manager PATCH v2 8/8] virt-install: Drop support for --os-variant list

Giuseppe Scrivano gscrivan at redhat.com
Mon Feb 17 15:40:06 UTC 2014


Signed-off-by: Giuseppe Scrivano <gscrivan at redhat.com>
---
 man/virt-install.pod | 7 ++-----
 virt-install         | 7 -------
 2 files changed, 2 insertions(+), 12 deletions(-)

diff --git a/man/virt-install.pod b/man/virt-install.pod
index 119b515..008b78d 100644
--- a/man/virt-install.pod
+++ b/man/virt-install.pod
@@ -384,11 +384,8 @@ By default, virt-install will attempt to auto detect this value from
 the install media (currently only supported for URL installs). Autodetection
 can be disabled with the special value 'none'.
 
-If the special value 'list' is passed, virt-install will print the full
-list of variant values and exit. The printed format is not a stable
-interface, DO NOT PARSE IT.
-
-Use '--os-variant list' to see the full OS list
+Use the command "osinfo-query os" to get the list of the accepted OS
+variants.
 
 =item --boot=BOOTOPTS
 
diff --git a/virt-install b/virt-install
index 6453f77..ab02041 100755
--- a/virt-install
+++ b/virt-install
@@ -841,13 +841,6 @@ def main(conn=None):
 
     check_cdrom_option_error(options)
 
-    if options.distro_variant == "list":
-        logging.debug("OS list requested")
-        for t in virtinst.osdict.list_os(list_types=True):
-            for v in virtinst.osdict.list_os(typename=t.name):
-                print "%-20s : %s" % (v.name, v.label)
-        return 0
-
     cli.set_force(options.force)
     cli.set_prompt(options.prompt)
 
-- 
1.8.5.3




More information about the virt-tools-list mailing list