Hello community,

here is the log from the commit of package kdump for openSUSE:Leap:15.2 checked 
in at 2020-04-08 12:48:12
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/kdump (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.kdump.new.3248 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kdump"

Wed Apr  8 12:48:12 2020 rev:67 rq:790612 version:0.9.0

Changes:
--------
--- /work/SRC/openSUSE:Leap:15.2/kdump/kdump.changes    2020-02-16 
18:25:34.986632016 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.kdump.new.3248/kdump.changes  2020-04-08 
12:48:41.674351962 +0200
@@ -1,0 +2,6 @@
+Mon Mar 30 11:40:15 UTC 2020 - Petr Tesařík <[email protected]>
+
+- kdump-make-sure-that-the-udev-runtime-directory-exists.patch:
+  Make sure that the udev runtime directory exists (bsc#1164713).
+
+-------------------------------------------------------------------

New:
----
  kdump-make-sure-that-the-udev-runtime-directory-exists.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ kdump.spec ++++++
--- /var/tmp/diff_new_pack.C93OK3/_old  2020-04-08 12:48:43.234352775 +0200
+++ /var/tmp/diff_new_pack.C93OK3/_new  2020-04-08 12:48:43.238352777 +0200
@@ -67,6 +67,7 @@
 Patch29:        %{name}-prefer-by-path-and-device-mapper.patch
 Patch30:        %{name}-calibrate-Update-values.patch
 Patch31:        %{name}-activate-udev-rules-late-during-boot.patch
+Patch32:        %{name}-make-sure-that-the-udev-runtime-directory-exists.patch
 BuildRequires:  asciidoc
 BuildRequires:  cmake
 BuildRequires:  gcc-c++
@@ -156,6 +157,7 @@
 %patch29 -p1
 %patch30 -p1
 %patch31 -p1
+%patch32 -p1
 
 %build
 export CFLAGS="%{optflags}"

++++++ kdump-make-sure-that-the-udev-runtime-directory-exists.patch ++++++
>From c79aa44d58ef29e22516986641970c343cb15cd0 Mon Sep 17 00:00:00 2001
From: Petr Tesarik <[email protected]>
Date: Tue, 25 Feb 2020 14:47:02 +0100
Subject: Make sure that the udev runtime directory exists
References: bsc#1164713
Upstream: merged
Git-commit: c79aa44d58ef29e22516986641970c343cb15cd0

Hotplug operations will not work with kdump if the udev runtime
directory does not exist at startup.

While fixing it, move udev rules handling to load.sh / unload.sh.

Signed-off-by: Petr Tesarik <[email protected]>
---
 init/kdump.service |    2 --
 init/load.sh       |    3 +++
 init/unload.sh     |    2 ++
 3 files changed, 5 insertions(+), 2 deletions(-)

--- a/init/kdump.service
+++ b/init/kdump.service
@@ -5,8 +5,6 @@ After=local-fs.target network.service Ya
 [Service]
 Type=oneshot
 ExecStart=/lib/kdump/load.sh --update
-ExecStartPost=-/usr/bin/cp /usr/lib/kdump/70-kdump.rules 
/run/udev/rules.d/70-kdump.rules
-ExecStopPost=-/usr/bin/rm -f /run/udev/rules.d/70-kdump.rules
 ExecStop=/lib/kdump/unload.sh
 RemainAfterExit=true
 
--- a/init/load.sh
+++ b/init/load.sh
@@ -7,6 +7,7 @@ KDUMPTOOL=/usr/sbin/kdumptool
 KEXEC=/sbin/kexec
 FADUMP_ENABLED=/sys/kernel/fadump_enabled
 FADUMP_REGISTERED=/sys/kernel/fadump_registered
+UDEV_RULES_DIR=/run/udev/rules.d
 
 #
 # Remove an option from the kernel command line
@@ -324,6 +325,8 @@ result=$?
 
 if [ $result = 0 ] ; then
     echo 1 > /proc/sys/kernel/panic_on_oops
+    mkdir -p "$UDEV_RULES_DIR"
+    cp /usr/lib/kdump/70-kdump.rules "$UDEV_RULES_DIR"/70-kdump.rules
 fi
 
 exit $result
--- a/init/unload.sh
+++ b/init/unload.sh
@@ -6,6 +6,7 @@
 KDUMPTOOL=/usr/sbin/kdumptool
 KEXEC=/sbin/kexec
 FADUMP_REGISTERED=/sys/kernel/fadump_registered
+UDEV_RULES_DIR=/run/udev/rules.d
 
 eval $($KDUMPTOOL dump_config)
 
@@ -21,4 +22,5 @@ fi
 
 test $? -eq 0 || exit 1
 
+rm -f "$UDEV_RULES_DIR"/70-kdump.rules
 exit 0

Reply via email to