When dumping to ssh via link local ipv6 address, the ssh
parameter in kdump.conf is supposed to have the form like:
ssh user@fe80::cc1:8bff:fe90:b95f%eth0
where "%eth0" is an existing network interface supporting ipv6.
However, there are 4 problems in enabling link local ipv6:
1) The get_remote_host function in kdump-lib.sh currently
doesn't remove the network interface in the ipv6 address,
causing the ip command in kdump_install_net function to fail,
leading to a "Bad kdump location" message.
2) The logic in kdump_install_net will find the network
interface to use by "ip route" command, which might be
different from what user specified in kdump.conf in link
local ipv6 cases.
3) The kdump_setup_ifname function in dracut-module-setup.sh
would add 'kdump-' prefix to network interfaces with name like
'eth*', causing ssh target specified in kdump.conf invalid
while dumping process.
4) ssh target with 'kdump-' prefixed interface name is not
in known_hosts while dumping, leading to ssh connection failure.
This patch series handles the problems above.
Ziyue Yang (4):
kdump-lib.sh: support link local ipv6 address with interface name
dracut-module-setup.sh: use network interface specified by user in
link local ipv6
dracut-module-setup.sh: add 'kdump-' prefix in kdump.conf for link
local ipv6
dracut-kdump.sh: support 'kdump-' prefixed interfaces for link local
ipv6
dracut-kdump.sh | 10 +++++++++-
dracut-module-setup.sh | 32 +++++++++++++++++++++++++++-----
kdump-lib.sh | 11 +++++++++++
3 files changed, 47 insertions(+), 6 deletions(-)
--
2.9.3
Show replies by date