dracut needs rd.neednet=1 commandline parameter to force network activation. Together with Request 224727 to dracut this should solve current kdump-via-network issues (bnc#866771) OBS-URL: https://build.opensuse.org/request/show/224742 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kdump?expand=0&rev=64
30 lines
1012 B
Diff
30 lines
1012 B
Diff
--- init/mkdumprd.old 2014-03-04 17:51:17.000000000 +0100
|
|
+++ init/mkdumprd 2014-03-05 17:57:07.606638345 +0100
|
|
@@ -123,6 +123,26 @@
|
|
|
|
DRACUT_ARGS="--force --hostonly --omit 'systemd plymouth resume usrmount'"
|
|
|
|
+ # network configuration
|
|
+ if [ "$KDUMP_NETCONFIG" = "auto" ] ; then
|
|
+ status_message "Network: auto"
|
|
+ DRACUT_ARGS+=" --kernel-cmdline 'rd.neednet=1'"
|
|
+ elif [ -z "$KDUMP_NETCONFIG" ] ; then
|
|
+ status_message "Network: none"
|
|
+ else
|
|
+ interface=$(echo "$KDUMP_NETCONFIG" | cut -d ':' -f 1)
|
|
+ mode=$(echo "$KDUMP_NETCONFIG" | cut -d ':' -f 2)
|
|
+
|
|
+ status_message "Network interface: $interface"
|
|
+ if [ "$mode" = "static" ] ; then
|
|
+ status_message "Network mode: Static IP"
|
|
+ DRACUT_ARGS+=" --kernel-cmdline 'rd.neednet=1'"
|
|
+ else
|
|
+ status_message "Network mode: Automatic IP (DHCP)"
|
|
+ DRACUT_ARGS+=" --kernel-cmdline 'rd.neednet=1 ip=${interface}:dhcp'"
|
|
+ fi
|
|
+ fi
|
|
+
|
|
# add mount points
|
|
kdump_get_mountpoints || return 1
|
|
i=0
|