pcs cluster and cluster cib-upgrade may throw some information and disturb the parsing. Mute them
Signed-off-by: Pingfan Liu piliu@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" -`
On Mon, Apr 20, 2020 at 11:16 AM Pingfan Liu piliu@redhat.com wrote:
pcs cluster and cluster cib-upgrade may throw some information and disturb the parsing. Mute them
Signed-off-by: Pingfan Liu piliu@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
Looks good to me,
Acked-by: Kairui Song kasong@redhat.com