From 84f94be90bc3affea288fd3c41fba3ae79050b37 Mon Sep 17 00:00:00 2001 From: WANG Chao Date: Thu, 29 Jan 2015 11:39:02 +0800 Subject: [PATCH] make kdump saving directory name consistent with RHEL6 Now we use the pattern: -YYYY.MM.DD-HH:MM:SS while rhel6 uses the following: -YYYY-MM-DD-HH:MM:SS This change may break someone's script and we should change it back to keep consistent between releases. Signed-off-by: WANG Chao Acked-by: Baoquan He Acked-by: Minfei Huang --- kdump-lib-initramfs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kdump-lib-initramfs.sh b/kdump-lib-initramfs.sh index 9f26f6c..d91816f 100755 --- a/kdump-lib-initramfs.sh +++ b/kdump-lib-initramfs.sh @@ -7,7 +7,7 @@ CORE_COLLECTOR="" DEFAULT_CORE_COLLECTOR="makedumpfile -l --message-level 1 -d 31" DMESG_COLLECTOR="/sbin/vmcore-dmesg" DEFAULT_ACTION="reboot" -DATEDIR=`date +%Y.%m.%d-%T` +DATEDIR=`date +%Y-%m-%d-%T` HOST_IP='127.0.0.1' DUMP_INSTRUCTION="" SSH_KEY_LOCATION="/root/.ssh/kdump_id_rsa"