Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.0:Staging:B
kdump
kdump-pass-all-IP-routes-to-kdump-environment.p...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kdump-pass-all-IP-routes-to-kdump-environment.patch of Package kdump
From: Michal Koutny <mkoutny@suse.com> Date: Mon, 26 Mar 2018 20:40:40 +0200 Subject: IP setup: pass all routes to kdump environment References: bsc#1062026 Upstream: merged Git-commit: 7013c7f7e081b1691a6b30ba213c39a5ab38e5fe In some network setups the kdump target may not be routable through the default route. Thus pass all found routes. --- init/setup-kdump.functions | 12 ++++++++++++ 1 file changed, 12 insertions(+) --- a/init/setup-kdump.functions +++ b/init/setup-kdump.functions @@ -550,6 +550,7 @@ function kdump_ip_config() # {{{ local ipaddr peeraddr gwaddr netmask hostname local family cidr rest local prefix + local routes r while read family cidr rest do [ "$family" = "inet" ] || continue @@ -572,6 +573,11 @@ function kdump_ip_config() # {{{ hostname=$(hostname) echo "ip=$ipaddr:$peeraddr:$gwaddr:$netmask:$hostname:$bootif:none" + + routes=$(ip route show dev "$iface" | sed -n 's/\([0-9].*\) via \([^ ]*\).*/\1:\2/p') + for r in $routes ; do + echo "rd.route=$r:$bootif" + done } # }}} # @@ -588,6 +594,7 @@ function kdump_ip6_config() # {{ local bootif="$2" local ipaddr peeraddr gwaddr netmask hostname local family cidr rest prefix + local routes r hostname=$(hostname) gwaddr=$(ip -6 route show ::/0 | sed -n 's/.* via \([^ ]*\).*/[\1]/p') @@ -612,6 +619,11 @@ function kdump_ip6_config() # {{ echo "ip=$ipaddr:$peeraddr:$gwaddr:$netmask:$hostname:$bootif:none" done < <(ip -6 address show dev "$iface" permanent scope global) + + routes=$(ip -6 route show dev "$iface" | sed -n 's/\([0-9a-fA-F:].*\) via \([^ ]*\).*/[\1]:[\2]/p') + for r in $routes ; do + echo "rd.route=$r:$bootif" + done } # }}} #
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor