pcs cluster and cluster cib-upgrade may throw some information and disturb
the parsing. Mute them
Signed-off-by: Pingfan Liu <piliu(a)redhat.com>
---
dracut-module-setup.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh
index 685b858..024e333 100755
--- a/dracut-module-setup.sh
+++ b/dracut-module-setup.sh
@@ -678,7 +678,7 @@ is_localhost() {
get_pcs_fence_kdump_nodes() {
local nodes
- pcs cluster sync && pcs cluster cib-upgrade
+ pcs cluster sync > /dev/null 2>&1 && pcs cluster cib-upgrade >
/dev/null 2>&1
# get cluster nodes from cluster cib, get interface and ip address
nodelist=`pcs cluster cib | xmllint --xpath "/cib/status/node_state/@uname"
-`
--
2.7.5