In mkdumprd, strip_comments is not implemented correctly. Since arguments passed, strip_comments only take $1 and misses others. This caused problems. Such as below line, current code will only get "makedumpfile" and pass it to $config_val finally, then parameters for makedumpfile are missed.
core_collector makedumpfile -c --message-level 1 -d 31
Now modify function strip_comments.
Signed-off-by: Baoquan He bhe@redhat.com --- kdump-lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kdump-lib.sh b/kdump-lib.sh index 4df5315..e73ac09 100755 --- a/kdump-lib.sh +++ b/kdump-lib.sh @@ -20,5 +20,5 @@ is_raw_dump_target()
strip_comments() { - echo $1 | sed -e 's/(.*)#.*/\1/' + echo $@ | sed -e 's/(.*)#.*/\1/' }
On 10/10/13 at 05:07pm, Baoquan He wrote:
In mkdumprd, strip_comments is not implemented correctly. Since arguments passed, strip_comments only take $1 and misses others. This caused problems. Such as below line, current code will only get "makedumpfile" and pass it to $config_val finally, then parameters for makedumpfile are missed.
core_collector makedumpfile -c --message-level 1 -d 31
Now modify function strip_comments.
Signed-off-by: Baoquan He bhe@redhat.com
Acked-by: WANG Chao chaowang@redhat.com
kdump-lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kdump-lib.sh b/kdump-lib.sh index 4df5315..e73ac09 100755 --- a/kdump-lib.sh +++ b/kdump-lib.sh @@ -20,5 +20,5 @@ is_raw_dump_target()
strip_comments() {
- echo $1 | sed -e 's/(.*)#.*/\1/'
- echo $@ | sed -e 's/(.*)#.*/\1/'
}
1.8.3.1
kexec mailing list kexec@lists.fedoraproject.org https://lists.fedoraproject.org/mailman/listinfo/kexec
On 10/10/13 at 05:07pm, Baoquan He wrote:
In mkdumprd, strip_comments is not implemented correctly. Since arguments passed, strip_comments only take $1 and misses others. This caused problems. Such as below line, current code will only get "makedumpfile" and pass it to $config_val finally, then parameters for makedumpfile are missed.
core_collector makedumpfile -c --message-level 1 -d 31
Now modify function strip_comments.
Signed-off-by: Baoquan He bhe@redhat.com
Ack
kdump-lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kdump-lib.sh b/kdump-lib.sh index 4df5315..e73ac09 100755 --- a/kdump-lib.sh +++ b/kdump-lib.sh @@ -20,5 +20,5 @@ is_raw_dump_target()
strip_comments() {
- echo $1 | sed -e 's/(.*)#.*/\1/'
- echo $@ | sed -e 's/(.*)#.*/\1/'
}
1.8.3.1
kexec mailing list kexec@lists.fedoraproject.org https://lists.fedoraproject.org/mailman/listinfo/kexec