- kdump-fix-missing-index-of-kdump_Host.patch: Fix missing index of kdump_Host (bsc#1002617). OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kdump?expand=0&rev=151
30 lines
896 B
Diff
30 lines
896 B
Diff
From: Lance Wang <lzwang@suse.com>
|
|
Date: Mon, 4 Dec 2017 16:05:23 +0800
|
|
Subject: Fix missing index of kdump_Host
|
|
References: bsc#1002617
|
|
Upstream: merged
|
|
Git-commit: 3d0ba82b678f996dd78a8de7da043340efec7dcb
|
|
|
|
Fix missing index of kdump_Host
|
|
|
|
---
|
|
init/setup-kdump.functions | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
--- a/init/setup-kdump.functions
|
|
+++ b/init/setup-kdump.functions
|
|
@@ -868,11 +868,11 @@ function kdump_modify_config() #
|
|
kdump_over_ssh=yes
|
|
if [ -z "$KDUMP_HOST_KEY" ] ; then
|
|
KDUMP_HOST_KEY=$(
|
|
- ssh-keygen -F "$kdump_Host" 2>/dev/null | \
|
|
+ ssh-keygen -F "${kdump_Host[i]}" 2>/dev/null | \
|
|
awk '/^[^#]/ { if (NF==3) { print $3; exit } }'
|
|
)
|
|
fi
|
|
- ssh-keygen -F "$kdump_Host" 2> /dev/null \
|
|
+ ssh-keygen -F "${kdump_Host[i]}" 2> /dev/null \
|
|
>>"${dest}/kdump/.ssh/known_hosts"
|
|
fi
|
|
|