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): dracut-module-setup.sh: change route finding logic in link local ipv6 cases 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 kdump.conf: add documents for link local ipv6 in ssh
dracut-kdump.sh | 10 +++++++++- dracut-module-setup.sh | 46 +++++++++++++++++++++++++++++++++++++++++----- kdump-lib.sh | 13 +++++++++++++ kdump.conf | 5 ++++- kdump.conf.5 | 7 ++++++- 5 files changed, 73 insertions(+), 8 deletions(-)