On 05/13/2014 03:51 PM, Marc Milgram wrote:
NetworkManager changed the format of ifcfg-device files. They may
define
static IP addresses with the following format:
IPADDR0=192.168.122.100
PREFIX0=24
There may be up to 255 ip addresses for a network device - each with a unique
number tagged to the end of IPADDR and PREFIX.
Prior to this fix, kdump only handled static ip addresses defined with
IPADDR=192.168.122.100
PREFIX=24
ie. without the number.
The solution is to use "ip" commands to find the correct network information.
Tested with both static and dynamic IP addresses.
Signed-off-by: Marc Milgram <mmilgram(a)redhat.com>
diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh
index 2a16900..9309853 100755
--- a/dracut-module-setup.sh
+++ b/dracut-module-setup.sh
@@ -67,14 +67,17 @@ kdump_setup_dns() {
...
@@ -181,7 +184,7 @@ kdump_setup_znet() {
# Setup dracut to bringup a given network interface
kdump_setup_netdev() {
- local _netdev=$1
+ local _netdev=$1 $_srcaddr=$2
The above line is incorrect. There should not be a $ before _srcaddr.
I will send V2 momentarily.
Self-NAK