wrong ssh key fix

To get sshkey from kdump.conf we should filter out comment.
Fix it by change awk pattern to use ^sshkey

Acked-by: Baoquan He <bhe@redhat.com>
This commit is contained in:
WANG Chao 2012-12-20 13:24:25 +08:00 committed by Dave Young
parent c53d3d2a10
commit 8fddece4e9

View File

@ -235,7 +235,7 @@ add_mount() {
}
# firstly get right SSH_KEY_LOCATION
keyfile=$(awk '/sshkey/ {print $2}' $conf_file)
keyfile=$(awk '/^sshkey/ {print $2}' $conf_file)
if [ -f "$keyfile" ]; then
# canonicalize the path
SSH_KEY_LOCATION=$(/usr/bin/readlink -m $keyfile)