Skip to contentSkip to conversation

silence xen-detect detection

PATCH In review Luca Berra 3 participants 3 messages Mar 7, 2010 – Mar 17, 2010 2 messages not in the archive

lore
Share & tools
lore

Luca Berra

author
#0 lore raw

PATCH 1/1 silence xen-detect detection

---
 modules.d/60xen/check |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
modules.d/60xen/check +1 -1
index 420cdc2..f155582 100755
@@ -1,7 +1,7 @@
 #!/bin/bash
 
 # No Xen-detect? Boo!!
-XENDETECT=$(which xen-detect)
+XENDETECT=$(which xen-detect 2>/dev/null)
 [ -z "$XENDETECT" ] && [ -d "/usr/lib/xen-default" ] && XENDETECT="/usr/lib/xen-default/bin/xen-detect"
 [ -z "$XENDETECT" ] && exit 1
 
Signature · 6 lines
Luca Berra -- [email protected]
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \

A message that is not in the archive (sent off-list or not yet received): 20100307125208.GA26671-hdG+WfPrfN2JmafXlB/[email protected]

#2 lore raw
Quoted 15 lines · Luca Berra

---
modules.d/60xen/check | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)
modules.d/60xen/check +1 -1
index 420cdc2..f155582 100755
@@ -1,7 +1,7 @@
 #!/bin/bash
 
 # No Xen-detect? Boo!!
-XENDETECT=$(which xen-detect)
+XENDETECT=$(which xen-detect 2>/dev/null)
Quoted 4 lines

[ -z "$XENDETECT" ] && [ -d "/usr/lib/xen-default" ] && XENDETECT="/usr/lib/xen-default/bin/xen-detect" [ -z "$XENDETECT" ] && exit 1

pushed

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 13 lines · Harald Hoyer
Quoted 12 lines · Luca Berra

---
modules.d/60xen/check | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)
modules.d/60xen/check +0 -0
index 420cdc2..f155582 100755
@@ -1,7 +1,7 @@
 #!/bin/bash
 
Quoted 6 lines
Quoted 6 lines
modules.d/60xen/check +1 -1
 # No Xen-detect? Boo!!
-XENDETECT=$(which xen-detect)
+XENDETECT=$(which xen-detect 2>/dev/null)

[ -z "$XENDETECT" ] && [ -d "/usr/lib/xen-default" ] && XENDETECT="/usr/lib/xen-default/bin/xen-detect" [ -z "$XENDETECT" ] && exit 1

BTW, lscpu(1) from util-linux-ng is able to detect KVM, Xen and MS Hv and type of virtualization (para/full).

Karel

Signature · 1 line
 Karel Zak  <[email protected]>