From f33f30eb614741f97d621fcc0c260e8da6148c86 Mon Sep 17 00:00:00 2001 From: Pingfan Liu Date: Mon, 20 Apr 2020 11:16:00 +0800 Subject: [PATCH] dracut-module-setup.sh: fix breakage in get_pcs_fence_kdump_nodes() pcs cluster and cluster cib-upgrade may throw some information and disturb the parsing. Mute them Signed-off-by: Pingfan Liu Acked-by: Kairui Song --- 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" -`