mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-02 09:47:16 +03:00
cli: Add --osinfo as alternate name for --os-variant
The --os-variant option naming is pretty crappy and mostly a historical artifact. Ideally this would be named just `--os` but I'm afraid that would cause confusion with libvirt's <os> XML Add --osinfo as an alternate commandline naming. If we ever want to transition documented use of --os-variant it will help to have the alternative around for a few releases Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
9e8a72537e
commit
67703ec7a5
@ -966,8 +966,8 @@ GUEST OS OPTIONS
|
||||
================
|
||||
|
||||
|
||||
``--os-variant``
|
||||
^^^^^^^^^^^^^^^^
|
||||
``--os-variant``, ``--osinfo``
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
**Syntax:** ``--os-variant`` OS_VARIANT
|
||||
|
||||
|
@ -180,7 +180,7 @@ These options decide what action to take after altering the XML. In the common c
|
||||
GUEST OS OPTIONS
|
||||
================
|
||||
|
||||
``--os-variant`` OS_VARIANT
|
||||
``--os-variant``, ``--osinfo`` OS_VARIANT
|
||||
Optimize the guest configuration for a specific operating system (ex.
|
||||
'fedora29', 'rhel7', 'win10'). While not required, specifying this
|
||||
options is HIGHLY RECOMMENDED, as it can greatly increase performance
|
||||
|
@ -896,7 +896,7 @@ c.add_valid("--hvm --import --prompt --force") # Working scenario w/ prompt sho
|
||||
c.add_valid("--paravirt --import") # PV Import install
|
||||
c.add_valid("--paravirt --print-xml 1") # print single XML, implied import install
|
||||
c.add_valid("--hvm --import --wait 0", grep="Treating --wait 0 as --noautoconsole") # --wait 0 is the same as --noautoconsole
|
||||
c.add_compare("-c %(EXISTIMG2)s --os-variant win2k3 --vcpus cores=4 --controller usb,model=none", "w2k3-cdrom") # HVM windows install with disk
|
||||
c.add_compare("-c %(EXISTIMG2)s --osinfo win2k3 --vcpus cores=4 --controller usb,model=none", "w2k3-cdrom") # HVM windows install with disk
|
||||
c.add_compare("--connect %(URI-KVM)s --install fedora26 --disk size=20", "osinfo-url-with-disk") # filling in defaults, but with disk specified
|
||||
c.add_compare("--connect %(URI-KVM)s --pxe --os-variant debianbuster --disk none", "osinfo-multiple-short-id", prerun_check=lambda: not OSDB.lookup_os("debianbuster")) # test plumbing for multiple short ids
|
||||
c.add_invalid("--hvm --import --wait 2", grep="exceeded specified time limit") # --wait positive number, but test suite hack
|
||||
|
@ -913,7 +913,7 @@ def add_os_variant_option(parser, virtinstall):
|
||||
"Example values: fedora29, rhel7.0, win10, ...\n"
|
||||
"See 'osinfo-query os' for a full list.")
|
||||
|
||||
osg.add_argument("--os-variant", help=msg)
|
||||
osg.add_argument("--os-variant", "--osinfo", help=msg)
|
||||
return osg
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user