Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package kdump for openSUSE:Factory checked in at 2025-08-25 20:36:29 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kdump (Old) and /work/SRC/openSUSE:Factory/.kdump.new.30751 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kdump" Mon Aug 25 20:36:29 2025 rev:162 rq:1301015 version:2.1.6 Changes: -------- --- /work/SRC/openSUSE:Factory/kdump/kdump.changes 2025-07-30 11:45:43.587590869 +0200 +++ /work/SRC/openSUSE:Factory/.kdump.new.30751/kdump.changes 2025-08-25 20:37:13.177882814 +0200 @@ -1,0 +2,9 @@ +Fri Aug 22 18:33:18 UTC 2025 - Jiri Bohac <[email protected]> + +- upgrade to version 2.1.6 + * drop broken option KDUMP_NETCONFIG="" from manpage + * prevent NetworkManager from overwriting resolv.conf (bsc#1247848) + * fix KDUMP_NETCONFIG=auto for NetworkManager (bsc#1247848) + * exclude kernel.panic_on_warn sysctl (bsc#1247355) + +------------------------------------------------------------------- Old: ---- kdump-2.1.5.tar.xz New: ---- kdump-2.1.6.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kdump.spec ++++++ --- /var/tmp/diff_new_pack.3NdayR/_old 2025-08-25 20:37:13.817909627 +0200 +++ /var/tmp/diff_new_pack.3NdayR/_new 2025-08-25 20:37:13.821909795 +0200 @@ -57,7 +57,7 @@ %define dracutlibdir %{_prefix}/lib/dracut Name: kdump -Version: 2.1.5 +Version: 2.1.6 Release: 0 Summary: Kernel crash dump scripts and utilities License: GPL-2.0-or-later ++++++ _scmsync.obsinfo ++++++ --- /var/tmp/diff_new_pack.3NdayR/_old 2025-08-25 20:37:13.853911136 +0200 +++ /var/tmp/diff_new_pack.3NdayR/_new 2025-08-25 20:37:13.857911303 +0200 @@ -1,6 +1,6 @@ -mtime: 1753370297 -commit: 2fb4cac28ef0902403fba1b196c857f5f80de9efa75b82a028dd62e4c55af245 +mtime: 1755888540 +commit: a496d9f2943ec9b1d99cd2a21060dffb6fed33e36422fc6f559dd11d32bdfe3e url: https://src.opensuse.org/kernel-kdump/kdump.git -revision: 2fb4cac28ef0902403fba1b196c857f5f80de9efa75b82a028dd62e4c55af245 +revision: a496d9f2943ec9b1d99cd2a21060dffb6fed33e36422fc6f559dd11d32bdfe3e projectscmsync: https://src.opensuse.org/kernel-kdump/_ObsPrj ++++++ build.specials.obscpio ++++++ ++++++ build.specials.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.gitignore new/.gitignore --- old/.gitignore 1970-01-01 01:00:00.000000000 +0100 +++ new/.gitignore 2025-08-22 20:50:16.000000000 +0200 @@ -0,0 +1 @@ +.osc ++++++ kdump-2.1.5.tar.xz -> kdump-2.1.6.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kdump-2.1.5/NEWS new/kdump-2.1.6/NEWS --- old/kdump-2.1.5/NEWS 2025-07-24 12:32:09.000000000 +0200 +++ new/kdump-2.1.6/NEWS 2025-08-22 20:31:30.000000000 +0200 @@ -1,3 +1,10 @@ +2.1.6 +----- +* drop broken option KDUMP_NETCONFIG="" from manpage +* prevent NetworkManager from overwriting resolv.conf (bsc#1247848) +* fix KDUMP_NETCONFIG=auto for NetworkManager (bsc#1247848) +* Exclude kernel.panic_on_warn sysctl from capture kernel initrd (bsc#1247355) + 2.1.5 ----- * kdumptool calibrate: use kernel flavour from the kdump kernel (jsc#PED-12971) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kdump-2.1.5/doc/man/kdump.5.txt.in new/kdump-2.1.6/doc/man/kdump.5.txt.in --- old/kdump-2.1.5/doc/man/kdump.5.txt.in 2025-07-24 12:32:09.000000000 +0200 +++ new/kdump-2.1.6/doc/man/kdump.5.txt.in 2025-08-22 20:31:30.000000000 +0200 @@ -502,11 +502,10 @@ _auto_ to auto-detect the network configuration (see *auto* mode below). The interface with the default route will be used. This is the default. -Network is configured only if needed, e.g. the dump target is on a remote -machine, or an email notification should be sent. If network is needed by -something else, such as a custom script used as KDUMP_PRESCRIPT or -KDUMP_POSTSCRIPT, add a _:force_ suffix to the network configuration, for -example "auto:force" or "eth0:dhcp4:force". +Network is configured only if needed, i.e. the dump target is on a remote +machine. If network is needed by something else, such as a custom script used as +KDUMP_PRESCRIPT or KDUMP_POSTSCRIPT, add a _:force_ suffix to the network +configuration, for example "auto:force" or "eth0:dhcp4:force". Use a _netdevice:mode_ string to force a specific network device to be used. A _netdevice_ is for example "eth0". The _mode_ can be: @@ -528,11 +527,15 @@ Use DHCP6 to configure an IPv6 address on the interface. *auto*:: - Select the mode depending on the current state of the interface: + Try to guess which of the above modes to use. + With NetworkManager: + when the interface is configured with manual or auto IPv4, + use "static" / "dhcp" respectively. + If not and manual IPv6 address is configured, use "static" + Otherwise use "dhcp". + With wicked or other network management tools, the results may be + different. - * use DHCP4 if it has an IPv4 address (IPv6 not set up), - * use DHCP6 if it has a permanent IPv6 address (IPv4 not set up), - * use IPv6 auto-configuration if it has neither (IPv4 not set up). Auto-detection cannot be used to set up dual-stack (IPv4 and IPv6) hosts because of limitations in the implementation of the _ip=_ initrd command line @@ -544,9 +547,6 @@ will be done by kdump and the value of KDUMP_NETCONFIG will not be taken into account. -Setting KDUMP_NETCONFIG to "" disables network completely. In this case, kdump -does not even add the _network_ dracut module to the initrd. - Default: "auto" KDUMP_NET_TIMEOUT diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kdump-2.1.5/dracut/module-setup.sh new/kdump-2.1.6/dracut/module-setup.sh --- old/kdump-2.1.5/dracut/module-setup.sh 2025-07-24 12:32:09.000000000 +0200 +++ new/kdump-2.1.6/dracut/module-setup.sh 2025-08-22 20:31:30.000000000 +0200 @@ -21,15 +21,12 @@ [[ "$KDUMP_POSTSCRIPT" =~ "$FENCE_KDUMP_SEND" ]] ; then # add fence_kdump_send to initrd automatically KDUMP_REQUIRED_PROGRAMS="$KDUMP_REQUIRED_PROGRAMS $FENCE_KDUMP_SEND" - # set up network (unless explicitly disabled by KDUMP_NETCONFIG) + # set up network kdump_neednet=y fi # check if network is needed - if [ -z "$KDUMP_NETCONFIG" ]; then - # network explicitly disabled in configuration - kdump_neednet= - elif [ "${KDUMP_NETCONFIG%:force}" != "$KDUMP_NETCONFIG" ]; then + if [ "${KDUMP_NETCONFIG%:force}" != "$KDUMP_NETCONFIG" ]; then # always set up network kdump_neednet=y else @@ -213,6 +210,16 @@ # is resolved first to install directly the target file if it is a symlink. local resolv=$(realpath /etc/resolv.conf) inst_simple "$resolv" /etc/resolv.conf + + # for static or auto6 network config mode, prevent NM from + # replacing the installed resolv.conf with an empty one + case "$kdump_net_mode" in + static|auto6) + mkdir -p $initdir/etc/NetworkManager/conf.d + echo -e "[main]\ndns=none" > $initdir/etc/NetworkManager/conf.d/99kdump.conf + ;; + esac + inst_simple /etc/hosts # set up hardware interfaces kdump_setup_hwif "${initdir}" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/kdump-2.1.5/dracut/setup-kdump.functions new/kdump-2.1.6/dracut/setup-kdump.functions --- old/kdump-2.1.5/dracut/setup-kdump.functions 2025-07-24 12:32:09.000000000 +0200 +++ new/kdump-2.1.6/dracut/setup-kdump.functions 2025-08-22 20:31:30.000000000 +0200 @@ -109,9 +109,27 @@ local inffile="/etc/install.inf" local BOOTPROTO - # get mode using wicked if possible - if [ "$(kdump_net_manager)" = "wicked" ] - then + # get mode using NM/wicked if possible + if [[ "$(kdump_net_manager)" = "NetworkManager" ]]; then + local nm_con method_v4 method_v6 + nm_con=$(nmcli -t -f GENERAL.CONNECTION device show "${ifname}") + nm_con="${nm_con#*:}" + if [[ -n "${nm_con}" ]]; then + method_v4=$(nmcli -t -f ipv4.method connection show "${nm_con}") + method_v4="${method_v4#*:}" + method_v6=$(nmcli -t -f ipv6.method connection show "${nm_con}") + method_v6="${method_v6#*:}" + + BOOTPROTO=dhcp + if [[ "$method_v4" == "disabled" ]] || [[ "$method_v4" == "link-local" ]]; then + # when IPv4 is disabled or LL, use possible static IPv6 + [[ "$method_v6" == "manual" ]] && BOOTPROTO=static + else + # use IPv4 - static or DHCP + [[ "$method_v4" == "manual" ]] && BOOTPROTO=static + fi + fi + elif [[ "$(kdump_net_manager)" = "wicked" ]]; then if [ "$(kdump_wicked_conf "$ifname" "%{name}")" = "$ifname" ] then local dhcpv4 dhcpv6 @@ -719,6 +737,7 @@ "$root"/etc/sysctl.conf do sed -i -e '/^[ \t]*vm\./d' "$f" + sed -i -e '/^[ \t]*kernel\.panic_on_warn/d' "$f" done eval "$restoreopt"
