2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-22 03:00:26 +00:00

enhance linux_diskless_kdump and deduce sleep time

This commit is contained in:
bybai
2018-04-11 06:05:47 -04:00
parent b3ce180cff
commit b0091144b5

View File

@@ -70,8 +70,8 @@ check:rc==0
check:output=~\d\d:\d\d:\d\d
cmd:xdsh $$CN "echo 1 > /proc/sys/kernel/sysrq"
cmd:xdsh $$CN "echo c > /proc/sysrq-trigger"
cmd:sleep 600
cmd:xdsh $$CN "echo c > /proc/sysrq-trigger" -t 30
cmd:sleep 300
cmd:vmcorefile=`find /kdumpdir/ -name vmcore`;if [[ -s $vmcorefile ]]; then echo "this file is not empty";else echo "this file is empty"; fi
check:output=~not empty