SHA256
1
0
forked from pool/kdump

Accepting request 252449 from home:ptesarik:branches:Kernel:kdump

Fix an "ip" error message

OBS-URL: https://build.opensuse.org/request/show/252449
OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kdump?expand=0&rev=112
This commit is contained in:
Petr Tesařík 2014-09-26 12:18:03 +00:00 committed by Git OBS Bridge
parent ae5557c4aa
commit 4d2d18fa66
2 changed files with 9 additions and 3 deletions

View File

@ -3,7 +3,7 @@ Date: Tue Sep 23 16:12:34 2014 +0200
Subject: Add KDUMP_NETCONFIG modes to support IPv6 Subject: Add KDUMP_NETCONFIG modes to support IPv6
References: bnc#885897 References: bnc#885897
Patch-mainline: v0.8.16 Patch-mainline: v0.8.16
Git-commit: 72be4138d5ac03af8c5579099c6a39ab7d272503 Git-commit: ffd6542ed47a41be1f1d9f8df95781b6d94123d4
KDUMP_NETCONFIG had only two modes: static and dhcp, where dhcp KDUMP_NETCONFIG had only two modes: static and dhcp, where dhcp
actually only means DHCP4. New modes are needed to get an IPv6 actually only means DHCP4. New modes are needed to get an IPv6
@ -98,9 +98,9 @@ Signed-off-by: Petr Tesarik <ptesarik@suse.cz>
+ printf " %s" $(kdump_ifname_config "$_if") + printf " %s" $(kdump_ifname_config "$_if")
+ +
+ if [ "$_mode" = "auto" ] ; then + if [ "$_mode" = "auto" ] ; then
+ if [ -n $(kdump_ip_config) ] ; then + if [ -n $(kdump_ip_config "$_if") ] ; then
+ _mode=dhcp4 + _mode=dhcp4
+ elif [ -n $(kdump_ip6_config) ] ; then + elif [ -n $(kdump_ip6_config "$_if") ] ; then
+ _mode=dhcp6 + _mode=dhcp6
else else
- echo -n " ip=${_if}:dhcp" - echo -n " ip=${_if}:dhcp"

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Sep 26 10:05:56 UTC 2014 - ptesarik@suse.cz
- kdump-add-IPv6-KDUMP_NETCONFIG-modes.patch: Refresh: Fix ip
error messages when KDUMP_NETCONFIG=auto (bnc#885897).
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Sep 23 14:17:01 UTC 2014 - ptesarik@suse.cz Tue Sep 23 14:17:01 UTC 2014 - ptesarik@suse.cz