summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2020-09-14 20:28:02 -0400
committerCole Robinson <crobinso@redhat.com>2020-09-14 20:36:12 -0400
commita242894182c978020629be7d1a11c4bc505a3f9f (patch)
tree622d90f7bb75b8710e5ab1170bc96282c46add19 /man
parent17f47a44c5514dd43136d6cbaccbebc1643f84c5 (diff)
downloadvirt-manager-a242894182c978020629be7d1a11c4bc505a3f9f.tar.gz
cli: Add --os-variant require=on|off
If specified, this errors if no OS name was detected or manually set. So --os-variant detect=on,require=on will error if no OS is detected. name= can be used as a fallback, so test and document this case Signed-off-by: Cole Robinson <crobinso@redhat.com>
Diffstat (limited to 'man')
-rw-r--r--man/virt-install.rst24
1 files changed, 23 insertions, 1 deletions
diff --git a/man/virt-install.rst b/man/virt-install.rst
index 9cc43360..4b72788b 100644
--- a/man/virt-install.rst
+++ b/man/virt-install.rst
@@ -992,7 +992,29 @@ syntax as well:
install media. Detection is presently only attempted for URL and
CDROM installs, and is not 100% reliable.
-By default, virt-install will use ``--os-variant detect=on``.
+``require=on|off``
+ If ``on``, virt-install errors if no OS value is set or detected.
+
+
+Some interesting examples:
+
+``--os-variant detect=on,require=on``
+ This tells virt-install to attempt detection from install media,
+ but explicitly fail if that does not succeed. This will ensure
+ your virt-install invocations don't fallback to a poorly performing
+ config
+
+``--os-variant detect=on,name=OSNAME``
+ Attempt OS detection from install media, but if that fails, use
+ OSNAME as a fallback.
+
+
+By default, virt-install will do ``--os-variant detect=on,name=generic``,
+using the detected OS if found, and falling back to the stub ``generic``
+value otherwise, and printing a warning.
+
+If any manual ``--os-variant`` value is specified, the default is
+all settings off or unset.
Use the command "osinfo-query os" to get the list of the accepted OS
variant names.