projects
/
grml-autoconfig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
b39d89f
)
imvirt/vmware: don't allow output of grep on stdout
author
Michael Prokop
<mika@grml.org>
Fri, 1 Sep 2023 12:04:52 +0000
(14:04 +0200)
committer
Michael Prokop
<mika@grml.org>
Fri, 1 Sep 2023 12:04:52 +0000
(14:04 +0200)
To clarify, output of virt-what executed inside a VM on a VMware cluster
is `vmware`, and `VMware ESX Server` for imvirt.
Thanks: AndrĂ¡s Korn
autoconfig.functions
patch
|
blob
|
history
diff --git
a/autoconfig.functions
b/autoconfig.functions
index
af3a117
..
4a8b167
100755
(executable)
--- a/
autoconfig.functions
+++ b/
autoconfig.functions
@@
-185,7
+185,7
@@
VIRTUALBOX=false
VMWARE=false
if virt-what 2>/dev/null | grep -q 'vmware' || \
- imvirt 2>/dev/null | grep -i "vmware" ; then
+ imvirt 2>/dev/null | grep -i
q
"vmware" ; then
VIRTUAL=true; VMWARE=true; VIRTUAL_ENV='VMware'
fi