forked from pool/kdump
- kdump-calibrate-Update-values.patch: calibrate: Update values. - kdump-prefer-by-path-and-device-mapper.patch: Prefer by-path and device-mapper aliases over kernel device names (bsc#1101149, LTC#168532). - kdump-powerpc-no-reload-on-CPU-removal.patch: powerpc: Do not reload on CPU hot removal (bsc#1133407, LTC#176111). - kdump-Add-force-option-to-KDUMP_NETCONFIG.patch: Add ":force" option to KDUMP_NETCONFIG (bsc#1108919). - kdump-Add-fence_kdump_send-when-fence-agents-installed.patch: Add fence_kdump_send when fence-agents installed (bsc#1108919). - kdump-FENCE_KDUMP_SEND-variable.patch: Use var for path of fence_kdump_send and remove the unnecessary PRESCRIPT check (bsc#1108919). - kdump-Document-fence_kdump_send.patch: Document kdump behaviour for fence_kdump_send (bsc#1108919). - kdump-nss-modules.patch: Improve the handling of NSS (bsc#1021846). - kdump-skip-mounts-if-no-proc-vmcore.patch: Skip kdump-related mounts if there is no /proc/vmcore (bsc#1102252, bsc#1125011). - kdump-clean-up-kdump-mount-points.patch: Make sure that kdump mount points are cleaned up (bsc#1102252, bsc#1125011). - kdump-Clean-up-the-use-of-current-vs-boot-network-iface.patch: Clean up the use of current vs. boot network interface names (bsc#1094444, bsc#1116463, bsc#1141064). - kdump-Use-a-custom-namespace-for-physical-NICs.patch: Use a custom namespace for physical NICs (bsc#1094444, bsc#1116463, bsc#1141064). - kdump-preserve-white-space.patch: Preserve white space when removing kernel command line options (bsc#1117652). OBS-URL: https://build.opensuse.org/request/show/757490 OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kdump?expand=0&rev=188
44 lines
1.1 KiB
Diff
44 lines
1.1 KiB
Diff
From c5a6c610e1b3b4ce34a8769b7772a682fb826bda Mon Sep 17 00:00:00 2001
|
|
From: Petr Tesarik <ptesarik@suse.com>
|
|
Date: Thu, 29 Nov 2018 12:54:57 +0100
|
|
Subject: Use a custom namespace for physical NICs
|
|
References: bsc#1094444, bsc#1116463, bsc#1141064
|
|
Upstream: merged
|
|
Git-commit: c5a6c610e1b3b4ce34a8769b7772a682fb826bda
|
|
|
|
To prevent rename conflicts, use kdumpX as the interface name
|
|
instead of the current name.
|
|
|
|
Signed-off-by: Petr Tesarik <ptesarik@suse.com>
|
|
|
|
---
|
|
init/setup-kdump.functions | 10 +++++++++-
|
|
1 file changed, 9 insertions(+), 1 deletion(-)
|
|
|
|
--- a/init/setup-kdump.functions
|
|
+++ b/init/setup-kdump.functions
|
|
@@ -11,6 +11,13 @@
|
|
|
|
KDUMP_CONFIG=/etc/sysconfig/kdump
|
|
|
|
+#
|
|
+# Global variables
|
|
+#
|
|
+
|
|
+# Next network interface number
|
|
+kdump_ifnum=0
|
|
+
|
|
# Extract the device name from a route
|
|
#
|
|
# Input:
|
|
@@ -448,7 +455,8 @@ function kdump_ifname_config() #
|
|
|
|
if [ -z "$_ifkind" ]
|
|
then
|
|
- kdump_iface="$_iface"
|
|
+ kdump_iface="kdump$kdump_ifnum"
|
|
+ kdump_ifnum=$(( $kdump_ifnum + 1 ))
|
|
kdump_ifmap="$kdump_ifmap $_iface:$kdump_iface"
|
|
|
|
local _drv=$( readlink "/sys/class/net/$_iface/device/driver" )
|