commit kdump for openSUSE:Factory

2020-10-03 Thread root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2020-10-03 18:55:42

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new.4249 (New)


Package is "kdump"

Sat Oct  3 18:55:42 2020 rev:113 rq:838412 version:0.9.0

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2020-07-29 
17:15:49.452329876 +0200
+++ /work/SRC/openSUSE:Factory/.kdump.new.4249/kdump.changes2020-10-03 
18:55:51.669506123 +0200
@@ -1,0 +2,11 @@
+Tue Sep 22 05:51:13 UTC 2020 - Jiri Slaby 
+
+- add kdump-make-sure-that-initrd.target.wants-directory-exists.patch
+  (bsc#1172670)
+- clean up spec file
+  * systemd is available on all distros the package builds on
+  * use %cmake* macros for build/test/install
+- use %systemd_ordering only if defined
+- it now builds as back as SLE 12
+
+---

New:

  kdump-make-sure-that-initrd.target.wants-directory-exists.patch



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.KbAXGN/_old  2020-10-03 18:55:52.965507559 +0200
+++ /var/tmp/diff_new_pack.KbAXGN/_new  2020-10-03 18:55:52.969507564 +0200
@@ -16,10 +16,6 @@
 #
 
 
-# on systemd distros, rpm-build requires systemd-rpm-macros,
-# which in turn defines %%systemd_requires
-%define systemd_present %{defined systemd_requires}
-
 #Compat macro for new _fillupdir macro introduced in Nov 2017
 %if ! %{defined _fillupdir}
   %define _fillupdir %{_localstatedir}/adm/fillup-templates
@@ -68,6 +64,7 @@
 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
+Patch33:
%{name}-make-sure-that-initrd.target.wants-directory-exists.patch
 BuildRequires:  asciidoc
 BuildRequires:  cmake
 BuildRequires:  gcc-c++
@@ -79,6 +76,7 @@
 BuildRequires:  libxslt
 BuildRequires:  pkgconfig
 BuildRequires:  zlib-devel
+BuildRequires:  pkgconfig(systemd)
 BuildRequires:  pkgconfig(udev)
 #!BuildIgnore:  fop
 Requires:   /usr/bin/sed
@@ -95,15 +93,7 @@
 # update should detect the split-off from kexec-tools
 Provides:   kexec-tools:%{_initddir}/kdump
 ExcludeArch:s390 ppc
-%if %{systemd_present}
-BuildRequires:  pkgconfig(systemd)
-%else
-# FIXME: use proper Requires(pre/post/preun/...)
-PreReq: %insserv_prereq
-%endif
-%if %{systemd_present}
-%systemd_ordering
-%endif
+%{?systemd_ordering}
 
 %description
 kdump is a package that includes several scripts for kdump, including
@@ -158,41 +148,38 @@
 %patch30 -p1
 %patch31 -p1
 %patch32 -p1
+%patch33 -p1
 
 %build
-export CFLAGS="%{optflags}"
 export CXXFLAGS="%{optflags} -std=gnu++98"
-mkdir build
-cd build
-cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} ..
-make %{?_smp_mflags}
+%cmake
+
+# for SLE_15
+%if %{undefined cmake_build}
+%define cmake_build make %{?_smp_mflags}
+%define ctest cd build; ctest --output-on-failure --force-new-ctest-process 
%{?_smp_mflags}
+%define cmake_install DESTDIR=%{buildroot} make -C build %{?_smp_mflags} 
install
+%endif
+
+%cmake_build
 
 %check
-cd build
-ctest --output-on-failure --force-new-ctest-process %{?_smp_mflags} 
+%ctest
 
 %install
-DESTDIR=%{buildroot} make -C build %{?_smp_mflags} install
+%cmake_install
 # remove executable bit from non-binaries
 chmod -x %{buildroot}/lib/kdump/setup-kdump.functions
 # empty directory
 mkdir -p %{buildroot}%{_localstatedir}/crash
 
 # symlink for init script
-%if %{systemd_present}
 rm %{buildroot}%{_initddir}/boot.kdump
 ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rckdump
-%else
-rm %{buildroot}%{_prefix}/lib/systemd/system/kdump.service
-rm %{buildroot}%{_prefix}/lib/systemd/system/kdump-early.service
-ln -s ../..%{_initddir}/boot.kdump %{buildroot}%{_sbindir}/rckdump
-%endif
 
-%if %{systemd_present}
 %pre
 %service_add_pre kdump.service
 %service_add_pre kdump-early.service
-%endif
 
 %post
 # change only permission if the file exists before /etc/sysconfig/kdump
@@ -201,7 +188,6 @@
 if [ ! -f %{_sysconfdir}/sysconfig/kdump ] ; then
 change_permission=1
 fi
-%if %{systemd_present}
 %{fillup_only -n kdump}
 %service_add_post kdump.service
 %service_add_post kdump-early.service
@@ -209,9 +195,6 @@
 if [ -x %{_bindir}/systemctl ] && %{_bindir}/systemctl is-enabled 
kdump.service &>/dev/null ; then
%{_bindir}/systemctl reenable kdump.service || :
 fi
-%else
-%{fillup_and_insserv -n kdump boot.kdump}
-%endif
 if [ "$change_permission" = 1 ]; then
 chmod 0600 %{_sysconfdir}/sysconfig/kdump
 fi
@@ -223,25 +206,16 @@
 
 %preun
 echo "Stopping kdump ..."
-%if %{systemd_present}
 %service_del_preun kdump.service
 %service_del_

commit kdump for openSUSE:Factory

2020-07-29 Thread root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2020-07-29 17:14:51

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new.3592 (New)


Package is "kdump"

Wed Jul 29 17:14:51 2020 rev:112 rq:822559 version:0.9.0

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2020-04-04 
12:17:37.719531523 +0200
+++ /work/SRC/openSUSE:Factory/.kdump.new.3592/kdump.changes2020-07-29 
17:15:49.452329876 +0200
@@ -1,0 +2,11 @@
+Tue Jul 21 12:43:49 UTC 2020 - Thorsten Kukuk 
+
+- Make dracut and sed normal requires as we don't use them in 
+  %pre/%post install. Use file requires for sed.
+
+---
+Thu Jun  4 14:53:00 UTC 2020 - Thorsten Kukuk 
+
+- Don't PreRequire coreutils but the tools we really need
+
+---



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.1Sz0En/_old  2020-07-29 17:15:50.468330761 +0200
+++ /var/tmp/diff_new_pack.1Sz0En/_new  2020-07-29 17:15:50.472330764 +0200
@@ -81,15 +81,15 @@
 BuildRequires:  zlib-devel
 BuildRequires:  pkgconfig(udev)
 #!BuildIgnore:  fop
+Requires:   /usr/bin/sed
 Requires:   curl
+Requires:   dracut
 Requires:   kexec-tools
 Requires:   makedumpfile
 Requires:   openssh
 # FIXME: use proper Requires(pre/post/preun/...)
 PreReq: %fillup_prereq
-PreReq: coreutils
-PreReq: dracut
-PreReq: sed
+PreReq: /usr/bin/mkdir /usr/bin/rm /usr/bin/touch
 Recommends: cifs-utils
 Recommends: nfs-client
 # update should detect the split-off from kexec-tools




commit kdump for openSUSE:Factory

2020-04-04 Thread root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2020-04-04 12:17:29

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new.3248 (New)


Package is "kdump"

Sat Apr  4 12:17:29 2020 rev:111 rq:789731 version:0.9.0

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2020-02-09 
21:02:50.411367943 +0100
+++ /work/SRC/openSUSE:Factory/.kdump.new.3248/kdump.changes2020-04-04 
12:17:37.719531523 +0200
@@ -1,0 +2,6 @@
+Mon Mar 30 11:40:15 UTC 2020 - Petr Tesařík 
+
+- 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.dBhH20/_old  2020-04-04 12:17:38.871532513 +0200
+++ /var/tmp/diff_new_pack.dBhH20/_new  2020-04-04 12:17:38.875532517 +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 
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 
---
 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



commit kdump for openSUSE:Factory

2020-02-09 Thread root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2020-02-09 21:02:24

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new.26092 (New)


Package is "kdump"

Sun Feb  9 21:02:24 2020 rev:110 rq:770108 version:0.9.0

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2020-02-03 
11:11:24.529787025 +0100
+++ /work/SRC/openSUSE:Factory/.kdump.new.26092/kdump.changes   2020-02-09 
21:02:50.411367943 +0100
@@ -7,0 +8,9 @@
+Fri Jan 24 13:45:05 UTC 2020 - Dominique Leuenberger 
+
+- Use BuildRequire(udev) instead of udev: allow OBS to shortcut
+  through the -mini flavors.
+- Use systemd_ordering instead of systemd_requires: systemd is not
+  a strict requirement, but if the system is going to use it, we
+  want it to beinstalled prior to kdump.
+
+---



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.q7OFZ6/_old  2020-02-09 21:02:54.031369997 +0100
+++ /var/tmp/diff_new_pack.q7OFZ6/_new  2020-02-09 21:02:54.047370006 +0100
@@ -17,7 +17,7 @@
 
 
 # on systemd distros, rpm-build requires systemd-rpm-macros,
-# which in turn defines %systemd_requires
+# which in turn defines %%systemd_requires
 %define systemd_present %{defined systemd_requires}
 
 #Compat macro for new _fillupdir macro introduced in Nov 2017
@@ -77,8 +77,8 @@
 BuildRequires:  libopenssl-devel
 BuildRequires:  libxslt
 BuildRequires:  pkgconfig
-BuildRequires:  udev
 BuildRequires:  zlib-devel
+BuildRequires:  pkgconfig(udev)
 #!BuildIgnore:  fop
 Requires:   curl
 Requires:   kexec-tools
@@ -101,7 +101,7 @@
 PreReq: %insserv_prereq
 %endif
 %if %{systemd_present}
-%systemd_requires
+%systemd_ordering
 %endif
 
 %description
@@ -194,7 +194,7 @@
 
 %post
 # change only permission if the file exists before /etc/sysconfig/kdump
-# has been created from %{_fillupdir}/sysconfig.kdump
+# has been created from %%{_fillupdir}/sysconfig.kdump
 change_permission=0
 if [ ! -f %{_sysconfdir}/sysconfig/kdump ] ; then
 change_permission=1
@@ -242,7 +242,7 @@
 %endif
 
 # Compatibility cruft
-# there is no %license prior to SLE12
+# there is no %%license prior to SLE12
 %if %{undefined _defaultlicensedir}
 %define license %doc
 %else




commit kdump for openSUSE:Factory

2020-02-03 Thread root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2020-02-03 11:11:05

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new.26092 (New)


Package is "kdump"

Mon Feb  3 11:11:05 2020 rev:109 rq:768202 version:0.9.0

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2019-12-24 
14:29:22.638558738 +0100
+++ /work/SRC/openSUSE:Factory/.kdump.new.26092/kdump.changes   2020-02-03 
11:11:24.529787025 +0100
@@ -1,0 +2,6 @@
+Mon Jan 27 16:35:50 UTC 2020 - Martin Wilck 
+
+- kdump-activate-udev-rules-late-during-boot.patch: Activate
+  kdump udev rules late during boot (bsc#1154837)
+
+---

New:

  kdump-activate-udev-rules-late-during-boot.patch



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.u8uSpM/_old  2020-02-03 11:11:27.561788558 +0100
+++ /var/tmp/diff_new_pack.u8uSpM/_new  2020-02-03 11:11:27.565788560 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package kdump
 #
-# Copyright (c) 2019 SUSE LLC
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,25 +18,15 @@
 
 # on systemd distros, rpm-build requires systemd-rpm-macros,
 # which in turn defines %systemd_requires
+%define systemd_present %{defined systemd_requires}
+
 #Compat macro for new _fillupdir macro introduced in Nov 2017
 %if ! %{defined _fillupdir}
-  %define _fillupdir /var/adm/fillup-templates
+  %define _fillupdir %{_localstatedir}/adm/fillup-templates
 %endif
 
-%define systemd_present %{defined systemd_requires}
-
 %define dracutlibdir %{_prefix}/lib/dracut
 
-%{!?_udevdir: %global _udevdir %(pkg-config --variable=udevdir udev)}
-%if "%{_udevdir}" == ""
-%if 0%{?suse_version} >= 1230
-%global _udevdir /usr/lib/udev
-%else
-%global _udevdir /lib/udev
-%endif
-%endif
-%define _udevrulesdir %{_udevdir}/rules.d
-
 Name:   kdump
 Version:0.9.0
 Release:0
@@ -76,6 +66,7 @@
 Patch28:%{name}-powerpc-no-reload-on-CPU-removal.patch
 Patch29:%{name}-prefer-by-path-and-device-mapper.patch
 Patch30:%{name}-calibrate-Update-values.patch
+Patch31:%{name}-activate-udev-rules-late-during-boot.patch
 BuildRequires:  asciidoc
 BuildRequires:  cmake
 BuildRequires:  gcc-c++
@@ -88,26 +79,27 @@
 BuildRequires:  pkgconfig
 BuildRequires:  udev
 BuildRequires:  zlib-devel
+#!BuildIgnore:  fop
 Requires:   curl
 Requires:   kexec-tools
 Requires:   makedumpfile
 Requires:   openssh
+# FIXME: use proper Requires(pre/post/preun/...)
 PreReq: %fillup_prereq
 PreReq: coreutils
+PreReq: dracut
 PreReq: sed
 Recommends: cifs-utils
 Recommends: nfs-client
-#!BuildIgnore:  fop
 # update should detect the split-off from kexec-tools
 Provides:   kexec-tools:%{_initddir}/kdump
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 ExcludeArch:s390 ppc
 %if %{systemd_present}
 BuildRequires:  pkgconfig(systemd)
 %else
+# FIXME: use proper Requires(pre/post/preun/...)
 PreReq: %insserv_prereq
 %endif
-PreReq: dracut
 %if %{systemd_present}
 %systemd_requires
 %endif
@@ -163,6 +155,7 @@
 %patch28 -p1
 %patch29 -p1
 %patch30 -p1
+%patch31 -p1
 
 %build
 export CFLAGS="%{optflags}"
@@ -171,31 +164,25 @@
 cd build
 cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} ..
 make %{?_smp_mflags}
-cd -
 
 %check
 cd build
-make %{?_smp_mflags} test
+ctest --output-on-failure --force-new-ctest-process %{?_smp_mflags} 
 
 %install
-cd build
-make %{?_smp_mflags} DESTDIR=%{buildroot} install
-cd -
-# move udev rules
-mkdir -p %{buildroot}/%{_udevrulesdir}
-mv %{buildroot}/%{_sysconfdir}/udev/rules.d/* %{buildroot}/%{_udevrulesdir}/
+DESTDIR=%{buildroot} make -C build %{?_smp_mflags} install
 # remove executable bit from non-binaries
 chmod -x %{buildroot}/lib/kdump/setup-kdump.functions
 # empty directory
-mkdir -p %{buildroot}/var/crash
+mkdir -p %{buildroot}%{_localstatedir}/crash
 
 # symlink for init script
 %if %{systemd_present}
 rm %{buildroot}%{_initddir}/boot.kdump
 ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rckdump
 %else
-rm %{buildroot}/usr/lib/systemd/system/kdump.service
-rm %{buildroot}/usr/lib/systemd/system/kdump-early.service
+rm %{buildroot}%{_prefix}/lib/systemd/system/kdump.service
+rm %{buildroot}%{_prefix}/lib/systemd/system/kdump-early.service
 ln -s ../..%{_initddir}/boot.kdump %{buildroot}%{_sbindir}/rckdump
 %endif
 
@@ -217,8 +204,8 @@
 %service_add_post kdump.service
 %service_add_post kdump-early.service
 # ensure newly added kdump-early.service is-enabled matc

commit kdump for openSUSE:Factory

2019-12-24 Thread root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2019-12-24 14:29:17

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new.6675 (New)


Package is "kdump"

Tue Dec 24 14:29:17 2019 rev:108 rq:757546 version:0.9.0

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2019-11-18 
20:03:52.117789383 +0100
+++ /work/SRC/openSUSE:Factory/.kdump.new.6675/kdump.changes2019-12-24 
14:29:22.638558738 +0100
@@ -1,0 +2,62 @@
+Tue Dec 17 10:00:30 UTC 2019 - Petr Tesařík 
+
+- kdump-calibrate-Update-values.patch: calibrate: Update values
+  (bsc#1130529).
+
+---
+Tue Dec 17 09:59:08 UTC 2019 - Petr Tesařík 
+
+- kdump-prefer-by-path-and-device-mapper.patch: Prefer by-path and
+  device-mapper aliases over kernel device names (bsc#1101149,
+  LTC#168532).
+
+---
+Fri Dec 13 15:11:32 UTC 2019 - Petr Tesařík 
+
+- kdump-powerpc-no-reload-on-CPU-removal.patch: powerpc: Do not
+  reload on CPU hot removal (bsc#1133407, LTC#176111).
+
+---
+Fri Dec 13 14:04:26 UTC 2019 - Petr Tesařík 
+
+- 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).
+
+---
+Mon Dec  9 09:57:37 UTC 2019 - Petr Tesařík 
+
+- kdump-nss-modules.patch: Improve the handling of NSS
+  (bsc#1021846).
+
+---
+Mon Dec  9 09:54:01 UTC 2019 - Petr Tesařík 
+
+- 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).
+
+---
+Fri Dec  6 16:50:06 UTC 2019 - Petr Tesařík 
+
+- kdump-Clean-up-the-use-of-current-vs-boot-network-iface.patch:
+  Clean up the use of current vs. boot network interface names
+  (bsc#109, bsc#1116463, bsc#1141064).
+- kdump-Use-a-custom-namespace-for-physical-NICs.patch: Use a
+  custom namespace for physical NICs (bsc#109, bsc#1116463,
+  bsc#1141064).
+
+---
+Fri Dec  6 10:49:48 UTC 2019 - Petr Tesařík 
+
+- kdump-preserve-white-space.patch: Preserve white space when
+  removing kernel command line options (bsc#1117652).
+
+---

New:

  kdump-Add-fence_kdump_send-when-fence-agents-installed.patch
  kdump-Add-force-option-to-KDUMP_NETCONFIG.patch
  kdump-Clean-up-the-use-of-current-vs-boot-network-iface.patch
  kdump-Document-fence_kdump_send.patch
  kdump-FENCE_KDUMP_SEND-variable.patch
  kdump-Use-a-custom-namespace-for-physical-NICs.patch
  kdump-calibrate-Update-values.patch
  kdump-clean-up-kdump-mount-points.patch
  kdump-nss-modules.patch
  kdump-powerpc-no-reload-on-CPU-removal.patch
  kdump-prefer-by-path-and-device-mapper.patch
  kdump-preserve-white-space.patch
  kdump-skip-mounts-if-no-proc-vmcore.patch



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.5c5wCX/_old  2019-12-24 14:29:23.270559044 +0100
+++ /var/tmp/diff_new_pack.5c5wCX/_new  2019-12-24 14:29:23.270559044 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package kdump
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -43,7 +43,7 @@
 Summary:Script for kdump
 License:GPL-2.0-or-later
 Group:  System/Kernel
-Url:https://github.com/openSUSE/kdump
+URL:https://github.com/openSUSE/kdump
 Source: %{name}-%{version}.tar.bz2
 Source2:%{name}-rpmlintrc
 Patch1: %{name}-fillupdir-fixes.patch
@@ -63,6 +63,19 @@
 Patch15:%{name}-Add-skip_balance-option-to-BTRFS-mounts.patch
 Patch16:%{name}-kdumprd-Look-for-boot-image-and-boot-Image.patch
 Patch17:%{name}-savedump-search-also-for-vmlinux

commit kdump for openSUSE:Factory

2019-11-18 Thread root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2019-11-18 20:03:37

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new.26869 (New)


Package is "kdump"

Mon Nov 18 20:03:37 2019 rev:107 rq:748662 version:0.9.0

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2019-06-27 
16:23:22.446358320 +0200
+++ /work/SRC/openSUSE:Factory/.kdump.new.26869/kdump.changes   2019-11-18 
20:03:52.117789383 +0100
@@ -1,0 +2,5 @@
+Tue Nov 12 08:11:26 UTC 2019 - Jiri Slaby 
+
+- add kdump-savedump-search-also-for-vmlinux.xz.patch (bnc#1155921)
+
+---

New:

  kdump-savedump-search-also-for-vmlinux.xz.patch



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.Lhevbv/_old  2019-11-18 20:03:53.429788724 +0100
+++ /var/tmp/diff_new_pack.Lhevbv/_new  2019-11-18 20:03:53.437788721 +0100
@@ -62,6 +62,7 @@
 Patch14:%{name}-fix-multipath-user_friendly_names.patch
 Patch15:%{name}-Add-skip_balance-option-to-BTRFS-mounts.patch
 Patch16:%{name}-kdumprd-Look-for-boot-image-and-boot-Image.patch
+Patch17:%{name}-savedump-search-also-for-vmlinux.xz.patch
 BuildRequires:  asciidoc
 BuildRequires:  cmake
 BuildRequires:  gcc-c++
@@ -135,6 +136,7 @@
 %patch14 -p1
 %patch15 -p1
 %patch16 -p1
+%patch17 -p1
 
 %build
 export CFLAGS="%{optflags}"

++ kdump-savedump-search-also-for-vmlinux.xz.patch ++
From: Jiri Slaby 
Date: Wed, 6 Nov 2019 11:35:50 +0100
Subject: savedump: search also for vmlinux.xz
Patch-mainline: yes
Git-commit: f1ef93a2fd465c6590edddc6dc1fcb3978c7f26b
References: bnc#1155921

See https://bugzilla.suse.com/show_bug.cgi?id=1155921

Signed-off-by: Jiri Slaby 
---
 kdumptool/savedump.cc | 13 ++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/kdumptool/savedump.cc b/kdumptool/savedump.cc
index 282f52e71f66..b8b6be13c3f8 100644
--- a/kdumptool/savedump.cc
+++ b/kdumptool/savedump.cc
@@ -596,7 +596,14 @@ string SaveDump::findKernel()
 if (binaryroot.exists())
 return binary;
 
-// 3: vmlinuz (check if ELF file)
+// 3: vmlinux.xz
+(binary = "/boot").appendPath("vmlinux-" + m_crashrelease + ".xz");
+(binaryroot = m_rootdir).appendPath(binary);
+Debug::debug()->dbg("Trying %s", binaryroot.c_str());
+if (binaryroot.exists())
+return binary;
+
+// 4: vmlinuz (check if ELF file)
 (binary = "/boot").appendPath("vmlinuz-" + m_crashrelease);
 (binaryroot = m_rootdir).appendPath(binary);
 Debug::debug()->dbg("Trying %s", binaryroot.c_str());
@@ -605,14 +612,14 @@ string SaveDump::findKernel()
 return binary;
 }
 
-// 4: image
+// 5: image
 (binary = "/boot").appendPath("image-" + m_crashrelease);
 (binaryroot = m_rootdir).appendPath(binary);
 Debug::debug()->dbg("Trying %s", binaryroot.c_str());
 if (binaryroot.exists())
 return binary;
 
-// 5: Image
+// 6: Image
 (binary = "/boot").appendPath("Image-" + m_crashrelease);
 (binaryroot = m_rootdir).appendPath(binary);
 Debug::debug()->dbg("Trying %s", binaryroot.c_str());
-- 
2.24.0




commit kdump for openSUSE:Factory

2019-06-27 Thread root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2019-06-27 16:23:21

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new.4615 (New)


Package is "kdump"

Thu Jun 27 16:23:21 2019 rev:106 rq:712074 version:0.9.0

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2019-05-03 
22:35:07.853020914 +0200
+++ /work/SRC/openSUSE:Factory/.kdump.new.4615/kdump.changes2019-06-27 
16:23:22.446358320 +0200
@@ -1,0 +2,6 @@
+Wed Jun 12 15:04:56 UTC 2019 - Dominique Leuenberger 
+
+- BuildRequire pkgconfig(systemd) instead of systemd: allow OBS to
+  shortcut the build queues by allowing usage of systemd-mini
+
+---



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.jzuZRF/_old  2019-06-27 16:23:23.278359663 +0200
+++ /var/tmp/diff_new_pack.jzuZRF/_new  2019-06-27 16:23:23.278359663 +0200
@@ -89,7 +89,7 @@
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 ExcludeArch:s390 ppc
 %if %{systemd_present}
-BuildRequires:  systemd
+BuildRequires:  pkgconfig(systemd)
 %else
 PreReq: %insserv_prereq
 %endif




commit kdump for openSUSE:Factory

2019-05-03 Thread root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2019-05-03 22:35:06

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new.5148 (New)


Package is "kdump"

Fri May  3 22:35:06 2019 rev:105 rq:698075 version:0.9.0

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2019-04-18 
13:55:51.611944272 +0200
+++ /work/SRC/openSUSE:Factory/.kdump.new.5148/kdump.changes2019-05-03 
22:35:07.853020914 +0200
@@ -1,0 +2,6 @@
+Fri Apr 26 07:36:54 UTC 2019 - Petr Tesarik 
+
+- kdump-kdumprd-Look-for-boot-image-and-boot-Image.patch: kdumprd:
+  Look for /boot/image-* and /boot/Image-* (bsc#1132799).
+
+---

New:

  kdump-kdumprd-Look-for-boot-image-and-boot-Image.patch



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.mR7TI2/_old  2019-05-03 22:35:09.981031261 +0200
+++ /var/tmp/diff_new_pack.mR7TI2/_new  2019-05-03 22:35:09.985031304 +0200
@@ -61,6 +61,7 @@
 Patch13:%{name}-recover-from-missing-CRASHTIME.patch
 Patch14:%{name}-fix-multipath-user_friendly_names.patch
 Patch15:%{name}-Add-skip_balance-option-to-BTRFS-mounts.patch
+Patch16:%{name}-kdumprd-Look-for-boot-image-and-boot-Image.patch
 BuildRequires:  asciidoc
 BuildRequires:  cmake
 BuildRequires:  gcc-c++
@@ -133,6 +134,7 @@
 %patch13 -p1
 %patch14 -p1
 %patch15 -p1
+%patch16 -p1
 
 %build
 export CFLAGS="%{optflags}"

++ kdump-kdumprd-Look-for-boot-image-and-boot-Image.patch ++
>From d332bb87cd1d093f8b78ff3d79413d84fa26dea3 Mon Sep 17 00:00:00 2001
From: Petr Tesarik 
Date: Fri, 26 Apr 2019 09:27:40 +0200
Subject: kdumprd: Look for /boot/image-* and /boot/Image-*
References: bsc#1132799
Upstream: merged
Git-commit: d332bb87cd1d093f8b78ff3d79413d84fa26dea3

These kernel image names are used on s390(x) and arm*/aarch64,
respectively. Without this change, the path to the kernel must be
given explicitly on the command line if a specific kernel version is
required.

Signed-off-by: Petr Tesarik 
---
 init/mkdumprd |6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--- a/init/mkdumprd
+++ b/init/mkdumprd
@@ -125,9 +125,9 @@ shift $(($OPTIND -1))
 if [ -z "$KERNEL" ] ; then
 if [ -n "$KERNELVERSION" ] ; then
 KERNEL=/boot/vmlinuz-$KERNELVERSION
-if ! [ -f "$KERNEL" ] ; then
-KERNEL=/boot/vmlinux-$KERNELVERSION
-fi
+test -f "$KERNEL" || KERNEL=/boot/image-$KERNELVERSION
+test -f "$KERNEL" || KERNEL=/boot/Image-$KERNELVERSION
+test -f "$KERNEL" || KERNEL=/boot/vmlinux-$KERNELVERSION
 else
 output=$(kdumptool find_kernel $find_kernel_args)
 KERNEL=$(echo "$output" | grep ^Kernel | cut -f 2)



commit kdump for openSUSE:Factory

2019-04-18 Thread root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2019-04-18 13:55:47

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new.5536 (New)


Package is "kdump"

Thu Apr 18 13:55:47 2019 rev:104 rq:694774 version:0.9.0

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2019-03-22 
14:55:22.518024740 +0100
+++ /work/SRC/openSUSE:Factory/.kdump.new.5536/kdump.changes2019-04-18 
13:55:51.611944272 +0200
@@ -1,0 +2,6 @@
+Tue Apr 16 09:12:51 UTC 2019 - [email protected]
+
+- kdump-Add-skip_balance-option-to-BTRFS-mounts.patch: Add
+  skip_balance option to BTRFS mounts (bsc#1108255).
+
+---

New:

  kdump-Add-skip_balance-option-to-BTRFS-mounts.patch



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.D2XPmg/_old  2019-04-18 13:55:54.975945362 +0200
+++ /var/tmp/diff_new_pack.D2XPmg/_new  2019-04-18 13:55:54.975945362 +0200
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -60,6 +60,7 @@
 Patch12:%{name}-fallback-re-register-fadump-from-userspace.patch
 Patch13:%{name}-recover-from-missing-CRASHTIME.patch
 Patch14:%{name}-fix-multipath-user_friendly_names.patch
+Patch15:%{name}-Add-skip_balance-option-to-BTRFS-mounts.patch
 BuildRequires:  asciidoc
 BuildRequires:  cmake
 BuildRequires:  gcc-c++
@@ -131,6 +132,7 @@
 %patch12 -p1
 %patch13 -p1
 %patch14 -p1
+%patch15 -p1
 
 %build
 export CFLAGS="%{optflags}"

++ kdump-Add-skip_balance-option-to-BTRFS-mounts.patch ++
>From f46c26fcf879f368726acf650c43eacde909dc9d Mon Sep 17 00:00:00 2001
From: Petr Tesarik 
Date: Tue, 16 Apr 2019 11:05:18 +0200
Subject: Add skip_balance option to BTRFS mounts
References: bsc#1108255
Upstream: merged
Git-commit: f46c26fcf879f368726acf650c43eacde909dc9d

If a crash happens while a balance operation is being performed on a
target btrfs filesystem, then this balance operation is resumed in
the kdump environment, which is not desirable. Skip it by adding a
'skip_balance' mount option to the kdump initrd.

Signed-off-by: Petr Tesarik 
---
 init/setup-kdump.functions | 4 
 1 file changed, 4 insertions(+)

diff --git a/init/setup-kdump.functions b/init/setup-kdump.functions
index 46b2902..9ff5efc 100644
--- a/init/setup-kdump.functions
+++ b/init/setup-kdump.functions
@@ -764,6 +764,10 @@ function kdump_update_mount()  
   # {{{
mountpoint="/kdump/mnt$i/${mountpoint#/kdump/mnt*/}"
 done
 
+if [ "$fstype" = "btrfs" ] ; then
+   opts="$opts,skip_balance"
+fi
+
 kdump_mnt[i]="${mountpoint%/}"
 kdump_dev[i]="$device"
 kdump_fstype[i]="$fstype"
-- 
2.16.4




commit kdump for openSUSE:Factory

2019-03-22 Thread root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2019-03-22 14:55:12

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new.25356 (New)


Package is "kdump"

Fri Mar 22 14:55:12 2019 rev:103 rq:687014 version:0.9.0

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2019-03-12 
09:47:33.519608102 +0100
+++ /work/SRC/openSUSE:Factory/.kdump.new.25356/kdump.changes   2019-03-22 
14:55:22.518024740 +0100
@@ -1,0 +2,49 @@
+Wed Mar 20 15:35:29 UTC 2019 - [email protected]
+
+- Use %license instead of %doc (bsc#1082318, bsc#1129947).
+
+---
+Wed Mar 20 13:34:40 UTC 2019 - [email protected]
+
+- kdump-fix-multipath-user_friendly_names.patch: Fix multipath
+  configuration with user_friendly_names and/or aliases
+  (bsc#207, LTC#171953, bsc#1125218, LTC#175465).
+
+---
+Wed Mar 20 13:34:16 UTC 2019 - [email protected]
+
+- kdump-recover-from-missing-CRASHTIME.patch: Recover from missing
+  CRASHTIME= in VMCOREINFO (bsc#1112387).
+
+---
+Wed Mar 20 13:26:08 UTC 2019 - [email protected]
+
+- kdump-fallback-re-register-fadump-from-userspace.patch:
+  Re-register FADUMP from userspace if the kernel cannot do it
+  (bsc#1108170, LTC#171288, bsc#1094016, LTC#168050)
+
+---
+Wed Mar 20 13:21:56 UTC 2019 - [email protected]
+
+- kdump-Restore-only-static-routes-in-kdump-initrd.patch: Restore
+  only static routes in kdump initrd (bsc#1093795).
+
+---
+Wed Mar 20 13:14:45 UTC 2019 - [email protected]
+
+- kdump-on-error-option-yesno.patch: Support yes/no style for
+  KDUMP_CONTINUE_ON_ERROR (bsc#1083155).
+
+---
+Wed Mar 20 13:06:26 UTC 2019 - [email protected]
+
+- kdump-use-pbl.patch: Replace obsolete perl-Bootloader library
+  with a simpler script (bsc#1050349).
+
+---
+Wed Mar 20 12:48:55 UTC 2019 - [email protected]
+
+- Ensure added kdump-early.service is enabled properly after update
+  (bsc#1021484).
+
+---

New:

  kdump-Restore-only-static-routes-in-kdump-initrd.patch
  kdump-fallback-re-register-fadump-from-userspace.patch
  kdump-fix-multipath-user_friendly_names.patch
  kdump-on-error-option-yesno.patch
  kdump-recover-from-missing-CRASHTIME.patch
  kdump-use-pbl.patch



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.uZ0Iv9/_old  2019-03-22 14:55:24.146023784 +0100
+++ /var/tmp/diff_new_pack.uZ0Iv9/_new  2019-03-22 14:55:24.146023784 +0100
@@ -54,6 +54,12 @@
 Patch6: %{name}-fadump-add-udev-support.patch
 Patch7: %{name}-turn-off-NUMA-in-kdump-kernel.patch
 Patch8: %{name}-remove-noefi-and-acpi_rsdp-for-efi-firmware.patch
+Patch9: %{name}-use-pbl.patch
+Patch10:%{name}-on-error-option-yesno.patch
+Patch11:%{name}-Restore-only-static-routes-in-kdump-initrd.patch
+Patch12:%{name}-fallback-re-register-fadump-from-userspace.patch
+Patch13:%{name}-recover-from-missing-CRASHTIME.patch
+Patch14:%{name}-fix-multipath-user_friendly_names.patch
 BuildRequires:  asciidoc
 BuildRequires:  cmake
 BuildRequires:  gcc-c++
@@ -119,6 +125,12 @@
 %patch6 -p1
 %patch7 -p1
 %patch8 -p1
+%patch9 -p1
+%patch10 -p1
+%patch11 -p1
+%patch12 -p1
+%patch13 -p1
+%patch14 -p1
 
 %build
 export CFLAGS="%{optflags}"
@@ -172,6 +184,10 @@
 %{fillup_only -n kdump}
 %service_add_post kdump.service
 %service_add_post kdump-early.service
+# ensure newly added kdump-early.service is-enabled matches prior state
+if [ -x /usr/bin/systemctl ] && /usr/bin/systemctl is-enabled kdump.service 
&>/dev/null ; then
+   /usr/bin/systemctl reenable kdump.service || :
+fi
 %else
 %{fillup_and_insserv -n kdump boot.kdump}
 %endif
@@ -206,12 +222,24 @@
 %insserv_cleanup
 %endif
 
+# Compatibility cruft
+# there is no %license prior to SLE12
+%if %{undefined _defaultlicensedir}
+%define license %doc
+%else
+# filesystem before SLE12 SP3 lacks /usr/share/licenses
+%if 0%(test ! -d %{_defaultlicensedir} && echo 1)
+%define _defaultlicensedir %_defaultdocdir
+%endif
+%endif
+# End of compatibility cruft
+
 %files
 %defattr(-,root,root)
-%doc ChangeLog COPYING README NEWS
+%license COPYING
+%doc ChangeLog README NEWS
 %{_sbindir}/kdumptool
 %{_sbindir}/mkdumprd
-%{_sbindir}/kdump-bootloader.pl
 %{_mandir}/man

commit kdump for openSUSE:Factory

2019-03-12 Thread root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2019-03-12 09:47:32

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new.28833 (New)


Package is "kdump"

Tue Mar 12 09:47:32 2019 rev:102 rq:682641 version:0.9.0

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2018-10-15 
10:05:01.661949832 +0200
+++ /work/SRC/openSUSE:Factory/.kdump.new.28833/kdump.changes   2019-03-12 
09:47:33.519608102 +0100
@@ -1,0 +2,6 @@
+Thu Mar  7 20:40:39 UTC 2019 - [email protected]
+
+- kdump-remove-noefi-and-acpi_rsdp-for-efi-firmware.patch: Remove
+  noefi and acpi_rsdp for EFI firmware (bsc#1123940).
+
+---

New:

  kdump-remove-noefi-and-acpi_rsdp-for-efi-firmware.patch



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.hKuiU7/_old  2019-03-12 09:47:34.411607924 +0100
+++ /var/tmp/diff_new_pack.hKuiU7/_new  2019-03-12 09:47:34.415607923 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package kdump
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -53,6 +53,7 @@
 Patch5: %{name}-fadump-fix-network-bring-up.patch
 Patch6: %{name}-fadump-add-udev-support.patch
 Patch7: %{name}-turn-off-NUMA-in-kdump-kernel.patch
+Patch8: %{name}-remove-noefi-and-acpi_rsdp-for-efi-firmware.patch
 BuildRequires:  asciidoc
 BuildRequires:  cmake
 BuildRequires:  gcc-c++
@@ -117,6 +118,7 @@
 %patch5 -p1
 %patch6 -p1
 %patch7 -p1
+%patch8 -p1
 
 %build
 export CFLAGS="%{optflags}"

++ kdump-remove-noefi-and-acpi_rsdp-for-efi-firmware.patch ++
>From 3ea13723f93cc22d163f1f1c8e64ccef3fa32471 Mon Sep 17 00:00:00 2001
From: "Lee, Chun-Yi" 
Date: Tue, 5 Mar 2019 15:06:10 +0800
Subject: Remove noefi and acpi_rsdp for EFI firmware
References: bsc#1123940
Upstream: merged
Git-commit: 3ea13723f93cc22d163f1f1c8e64ccef3fa32471

The noefi and acpi_rsdp can be removed because kernel passes necessary
EFI data for kexec via setup_data since 1fec05336 patch be introduced
in v3.14 kernel. (bsc#1098210)

On the other hand, the MOK (machine owner key) doesn't work with noefi.
It causes that third-party signed kernel modules can not be loaded by
crash kernel. Crash kernel can provide EFI runtime services for loading
MOK after noefi be removed. (bsc#1123940)

The kdump without noefi has been tested on Huawei Kunlun, Intel
minnowboard and KVM-OVMF.

Signed-off-by: Lee, Chun-Yi 
Acked-by: Petr Tesarik 
---
 init/load.sh |   11 ---
 1 file changed, 11 deletions(-)

--- a/init/load.sh
+++ b/init/load.sh
@@ -5,7 +5,6 @@
 
 KDUMPTOOL=/usr/sbin/kdumptool
 KEXEC=/sbin/kexec
-EFI_SYSTAB=/sys/firmware/efi/systab
 FADUMP_ENABLED=/sys/kernel/fadump_enabled
 FADUMP_REGISTERED=/sys/kernel/fadump_registered
 
@@ -97,16 +96,6 @@ function build_kdump_commandline()
 kernelrelease=$(uname -r)
 commandline="$commandline kernelversion=$kernelrelease"
 fi
-
-   if [ -f /sys/firmware/efi/systab ] ; then
-   local acpi_addr
-   if grep -q '^ACPI20=' /sys/firmware/efi/systab ; then
-   acpi_addr=$(awk -F'=' '/^ACPI20=/ {print $2}' "$EFI_SYSTAB")
-   else
-   acpi_addr=$(awk -F'=' '/^ACPI=/ {print $2}' "$EFI_SYSTAB")
-   fi
-   commandline="$commandline noefi acpi_rsdp=$acpi_addr"
-   fi
 fi
 
 commandline="$commandline $KDUMP_COMMANDLINE_APPEND"



commit kdump for openSUSE:Factory

2018-10-15 Thread root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2018-10-15 10:04:57

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Mon Oct 15 10:04:57 2018 rev:101 rq:640101 version:0.9.0

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2018-05-23 
16:06:12.728332549 +0200
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2018-10-15 
10:05:01.661949832 +0200
@@ -1,0 +2,22 @@
+Fri Oct  5 14:31:49 UTC 2018 - [email protected]
+
+- kdump-turn-off-NUMA-in-kdump-kernel.patch: Turn off NUMA in the
+  kdump kernel (bsc#1109784, bsc#1102609).
+
+---
+Fri Oct  5 14:29:47 UTC 2018 - [email protected]
+
+- kdump-fadump-add-udev-support.patch: fadump: add udev event
+  support for fadump (bsc#1108170).
+
+---
+Fri Oct  5 14:28:01 UTC 2018 - [email protected]
+
+- kdump-fadump-avoid-multipath-optimizations.patch: fadump: avoid
+  multipath optimizations that break regular boot (bsc#1101730).
+- kdump-split-cmdline-purpose-wise.patch: cmdline: split kdump
+  cmdline purpose wise (bsc#1101730).
+- kdump-fadump-fix-network-bring-up.patch: fadump: fix network
+  bring up issue during default boot (bsc#1101730).
+
+---

New:

  kdump-fadump-add-udev-support.patch
  kdump-fadump-avoid-multipath-optimizations.patch
  kdump-fadump-fix-network-bring-up.patch
  kdump-split-cmdline-purpose-wise.patch
  kdump-turn-off-NUMA-in-kdump-kernel.patch



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.OQBX3c/_old  2018-10-15 10:05:02.045949419 +0200
+++ /var/tmp/diff_new_pack.OQBX3c/_new  2018-10-15 10:05:02.049949414 +0200
@@ -48,6 +48,11 @@
 Source2:%{name}-rpmlintrc
 Patch1: %{name}-fillupdir-fixes.patch
 Patch2: %{name}-block-initrd-parse-etc.service.patch
+Patch3: %{name}-fadump-avoid-multipath-optimizations.patch
+Patch4: %{name}-split-cmdline-purpose-wise.patch
+Patch5: %{name}-fadump-fix-network-bring-up.patch
+Patch6: %{name}-fadump-add-udev-support.patch
+Patch7: %{name}-turn-off-NUMA-in-kdump-kernel.patch
 BuildRequires:  asciidoc
 BuildRequires:  cmake
 BuildRequires:  gcc-c++
@@ -107,6 +112,11 @@
 %patch1 -p1
 %endif
 %patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
 
 %build
 export CFLAGS="%{optflags}"

++ kdump-fadump-add-udev-support.patch ++
From: Hari Bathini 
Subject: fadump: add udev event support for fadump
References: bsc#1108170
Upstream: merged
Git-commit: eb5784f6cb8368b346b9b52be66116fc5a47f720

Currently, the udev rules written in kdump package only support reloading
kdump on memory/cpu hot add/remove operation. But this is needed as much
for FADump as well. The rules were not updated to support fadump owing to
lack of support in the kernel for re-registering FADump. This support is
now added to kernel with commit 0823c68b054b ("powerpc/fadump: re-register
firmware-assisted dump if already registered"). Update kdump udev rules
to load fadump on memory/cpu DLPAR operations.

Signed-off-by: Hari Bathini 
Signed-off-by: Petr Tesarik 
---
 70-kdump.rules.in |3 +++
 init/load.sh  |   29 -
 2 files changed, 19 insertions(+), 13 deletions(-)

--- a/70-kdump.rules.in
+++ b/70-kdump.rules.in
@@ -21,6 +21,9 @@ GOTO="kdump_end"
 # Reload only if panic kernel is already loaded
 LABEL="kdump_try_restart"
 PROGRAM="/bin/cat /sys/kernel/kexec_crash_loaded", RESULT!="0", 
RUN+="/lib/kdump/load-once.sh"
+@if @ARCH@ ppc64 ppc64le
+TEST=="/sys/kernel/fadump_registered", PROGRAM="/bin/cat 
/sys/kernel/fadump_registered", RESULT!="0", RUN+="/lib/kdump/load-once.sh"
+@endif
 
 LABEL="kdump_end"
 @endif
--- a/init/load.sh
+++ b/init/load.sh
@@ -243,21 +243,24 @@ function load_kdump_fadump()
 
 local msg
 local result=0
+local output
 
-# The kernel fails with EINVAL if registered already
-# (see bnc#814780)
-if [ "$(cat $FADUMP_REGISTERED)" != "1" ] ; then
-local output
-
-output=$( (echo 1 > "$FADUMP_REGISTERED") 2>&1)
-if [ $? -eq 0 ] ; then
-   msg="Registered fadump"
-   else
-   msg="FAILED to register fadump: $output"
-result=1
-   fi
+# Re-registering of FADump is supported in kernel (see bsc#1108170).
+# So, don't bother about whether FADump was registered already
+output=$( (echo 1 > "$FADUMP_REGISTERED") 2>&1)
+if [ $? -eq 0 ] ; then
+msg="Registered fadump"
 else
-   msg="fadump is 

commit kdump for openSUSE:Factory

2018-05-23 Thread root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2018-05-23 16:06:10

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Wed May 23 16:06:10 2018 rev:100 rq:609925 version:0.9.0

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2018-05-07 
14:53:35.814192329 +0200
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2018-05-23 
16:06:12.728332549 +0200
@@ -1,0 +2,5 @@
+Wed May 16 17:44:58 UTC 2018 - [email protected]
+
+- fix URL of upstream project
+
+---



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.iYBQEC/_old  2018-05-23 16:06:13.872290645 +0200
+++ /var/tmp/diff_new_pack.iYBQEC/_new  2018-05-23 16:06:13.872290645 +0200
@@ -41,9 +41,9 @@
 Version:0.9.0
 Release:0
 Summary:Script for kdump
-License:GPL-2.0+
+License:GPL-2.0-or-later
 Group:  System/Kernel
-Url:https://github.com/ptesarik/kdump
+Url:https://github.com/openSUSE/kdump
 Source: %{name}-%{version}.tar.bz2
 Source2:%{name}-rpmlintrc
 Patch1: %{name}-fillupdir-fixes.patch




commit kdump for openSUSE:Factory

2018-05-07 Thread root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2018-05-07 14:53:31

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Mon May  7 14:53:31 2018 rev:99 rq:604022 version:0.9.0

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2018-04-26 
13:34:32.887739170 +0200
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2018-05-07 
14:53:35.814192329 +0200
@@ -1,0 +2,78 @@
+Fri May  4 11:30:46 UTC 2018 - [email protected]
+
+- kdump-block-initrd-parse-etc.service.patch: Block
+  initrd-parse-etc.service until dump is saved (bsc#1091186).
+
+---
+Fri May  4 08:13:39 UTC 2018 - [email protected]
+
+- Remove kernel-ELF-aarch64: Included in upstream tarball.
+
+---
+Thu May  3 09:19:16 UTC 2018 - [email protected]
+
+- Update to 0.9.0
+  o Remove support for mkinitrd(8).
+- Drop patches now in mainline:
+  o kdump-Don-t-split-by-default.patch
+  o kdump-Dont-exit-even-if-initrd-is-not-built.patch
+  o kdump-KDUMP_SSH_IDENTITY-cfg.patch
+  o kdump-KDUMP_SSH_IDENTITY.patch
+  o kdump-Limit-kdump-cpus-to-number-provided-by-config.patch
+  o kdump-Routable-preferred-source-address.patch
+  o kdump-URLTransfer-complete-target.patch
+  o kdump-aarch64.patch
+  o kdump-activate-QETH-devices.patch
+  o kdump-additional-mounts-in-dracut-module.patch
+  o kdump-always-copy-timezone.patch
+  o kdump-always-kexec_load-if-kexec_file_load-fails.patch
+  o kdump-always-pass-kernelver-to-dracut.patch
+  o kdump-bail-out-if-no-default-interface.patch
+  o kdump-bind-mount-sysroot.patch
+  o kdump-bootloader-filter-out-KDUMPTOOL_FLAGS.patch
+  o kdump-calibrate-adjust-sizeof-struct-page.patch
+  o kdump-calibrate-do-not-add-KDUMP_PHYS_LOAD-to-RAM.patch
+  o kdump-calibrate-update-kernel-text-data-size.patch
+  o kdump-calibrate-update-user-space-requirements.patch
+  o kdump-cmake-compat.patch
+  o kdump-do-not-check-bind-mount.patch
+  o kdump-do-not-free-fadump-memory-when-immediate-reboot-is-requested.patch
+  o kdump-do-not-touch-dracut-vars-if-not-kdumprd.patch
+  o kdump-explicitly-request-zFCP-devices.patch
+  o kdump-fail-if-fadump-cannot-be-registered.patch
+  o kdump-fix-m_threads-missing-initialization.patch
+  o kdump-fix-missing-index-of-kdump_Host.patch
+  o kdump-fix-save_dump-to-NFS.patch
+  o kdump-fix-service-files.patch
+  o kdump-invoke-subcommand-destructors-on-exit.patch
+  o kdump-kdump_echo-and-kdump_logger-helpers.patch
+  o kdump-move-class-SystemCPU-to-header-file.patch
+  o kdump-multithreading-by-default.patch
+  o kdump-no-crashkernel-in-Xen-PV-DomU.patch
+  o kdump-no-xen-secondary-kernel.patch
+  o kdump-nokaslr.patch
+  o kdump-nsswitch.conf-filtering.patch
+  o kdump-pass-IPv6-address-prefix-separately.patch
+  o kdump-pass-all-IP-routes-to-kdump-environment.patch
+  o kdump-pre-generate-mount-units.patch
+  o kdump-prepend-IP-address.patch
+  o kdump-remount-sysroot-readwrite.patch
+  o kdump-remove-IPv6-brackets-for-getaddrinfo.patch
+  o kdump-run-mkinitrd-if-fadump-is-active.patch
+  o kdump-skip-IPv4-if-no-address.patch
+  o kdump-source-save_dump.patch
+  o kdump-treat-KDUMP_CPUS-0-as-all-available-CPUs.patch
+  o kdump-try-both-kexec_load-and-kexec_file_load.patch
+  o kdump-use-bus-id-to-identify-qeth-devices.patch
+  o kdump-x86_64-kexec-file-syscall.patch
+- Remove kdump-cmake-compat.patch: Since mkinitrd support has been
+  removed, compatibility with SLE11 is no longer needed.
+
+---
+Wed May  2 11:33:01 UTC 2018 - [email protected]
+
+- kdump-do-not-touch-dracut-vars-if-not-kdumprd.patch: Do not touch
+  any dracut variables when generating a non-kdump initrd
+  (bsc#1091304).
+
+---

Old:

  kdump-0.8.16.tar.bz2
  kdump-Don-t-split-by-default.patch
  kdump-Dont-exit-even-if-initrd-is-not-built.patch
  kdump-KDUMP_SSH_IDENTITY-cfg.patch
  kdump-KDUMP_SSH_IDENTITY.patch
  kdump-Limit-kdump-cpus-to-number-provided-by-config.patch
  kdump-Routable-preferred-source-address.patch
  kdump-URLTransfer-complete-target.patch
  kdump-aarch64.patch
  kdump-activate-QETH-devices.patch
  kdump-additional-mounts-in-dracut-module.patch
  kdump-always-copy-timezone.patch
  kdump-always-kexec_load-if-kexec_file_load-fails.patch
  kdump-always-pass-kernelver-to-dracut.patch
  kdump-bail-out-if-no-default-interface.patch
  kdump-bind-mount-sysroot.patch
  kdump-bootloader-filter-out-KDUMPTOOL_FLAGS.patch
  kdump-calibrate-adjust-sizeof-struct-page.patch
  kdump-calibrate-do-not-add-KDUMP_PHYS_LOAD-to-RAM.patch
  kdump-calibrate-update-kernel-text-data-size

commit kdump for openSUSE:Factory

2018-04-26 Thread root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2018-04-26 13:34:30

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Thu Apr 26 13:34:30 2018 rev:98 rq:599443 version:0.8.16

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2018-04-07 
20:55:07.670580126 +0200
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2018-04-26 
13:34:32.887739170 +0200
@@ -1,0 +2,8 @@
+Fri Apr 20 16:06:40 UTC 2018 - [email protected]
+
+- kdump-additional-mounts-in-dracut-module.patch: Handle additional
+  mounts in the kdump dracut module (bsc#1089917).
+- kdump-run-mkinitrd-if-fadump-is-active.patch: Run mkinitrd if
+  fadump is active (bsc#1089917).
+
+---

New:

  kdump-additional-mounts-in-dracut-module.patch
  kdump-run-mkinitrd-if-fadump-is-active.patch



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.62fPnB/_old  2018-04-26 13:34:34.259688899 +0200
+++ /var/tmp/diff_new_pack.62fPnB/_new  2018-04-26 13:34:34.259688899 +0200
@@ -96,6 +96,8 @@
 Patch47:%{name}-pass-all-IP-routes-to-kdump-environment.patch
 Patch48:%{name}-remove-IPv6-brackets-for-getaddrinfo.patch
 Patch49:%{name}-skip-IPv4-if-no-address.patch
+Patch50:%{name}-additional-mounts-in-dracut-module.patch
+Patch51:%{name}-run-mkinitrd-if-fadump-is-active.patch
 BuildRequires:  asciidoc
 BuildRequires:  cmake
 BuildRequires:  gcc-c++
@@ -207,6 +209,8 @@
 %patch47 -p1
 %patch48 -p1
 %patch49 -p1
+%patch50 -p1
+%patch51 -p1
 
 %build
 export CFLAGS="%{optflags}"

++ kdump-additional-mounts-in-dracut-module.patch ++
From: Petr Tesarik 
Date: Fri, 20 Apr 2018 17:26:22 +0200
Subject: Handle additional mounts in the kdump dracut module
References: bsc#1089917
Upstream: merged
Git-commit: bd3cc31f3b91e81e6acc00f314142bbda9ace495

This change is needed to fix FADUMP, because in that case the kdump
initrd is also used during normal boot, so it can get overwritten
with an invocation of "mkinitrd".

Currently, dracut does not provide an API to add more mounts from a
module, so part of the logic which sets up host devices and
filesystem mappings must be copied to the kdump module.

The approach is not clean, but probably still better than passing
some variables from mkdumprd to the kdump dracut module through
environment variables, which was done before. Yes, this means that
the ugly export/import functions can be removed and forgotten.

Signed-off-by: Petr Tesarik 
---
 init/mkdumprd  |   14 
 init/module-setup.sh   |   75 +
 init/setup-kdump.functions |   53 ---
 3 files changed, 62 insertions(+), 80 deletions(-)

--- a/init/mkdumprd
+++ b/init/mkdumprd
@@ -128,20 +128,6 @@ function run_dracut()
KERNELVERSION=$(get_kernel_version "$KERNEL")
 fi
 
-# add mount points
-kdump_get_mountpoints || return 1
-i=0
-while [ $i -lt ${#kdump_mnt[@]} ]
-do
-   if [ -n "${kdump_mnt[i]}" ] ; then
-   DRACUT_ARGS="$DRACUT_ARGS --mount '${kdump_dev[i]} ${kdump_mnt[i]} 
${kdump_fstype[i]} ${kdump_opts[i]}'"
-   fi
-   i=$((i+1))
-done
-
-# Make resolved variables visible to the dracut module
-kdump_export_targets
-
 DRACUT_ARGS="$DRACUT_ARGS --add 'kdump' $INITRD $KERNELVERSION"
 echo "Regenerating kdump initrd ..." >&2
 eval "bash -$- $DRACUT $DRACUT_ARGS"
--- a/init/module-setup.sh
+++ b/init/module-setup.sh
@@ -45,10 +45,71 @@ kdump_check_net() {
 kdump_ifname_config "$kdump_host_if"
 }
 
+kdump_get_fs_type() {
+local _dev="/dev/block/$1"
+local _fstype
+if [ -b "$_dev" ] && _fstype=$(get_fs_env "$_dev") ; then
+host_fs_types["$(readlink -f "$_dev")"]="$_fstype"
+elif _fstype=$(find_dev_fstype "$_dev"); then
+host_fs_types["$_dev"]="$_fstype"
+fi
+return 1
+}
+
+kdump_add_host_dev() {
+local _dev=$1
+[[ " ${host_devs[@]} " == *" $_dev "* ]] && return
+host_devs+=( "$_dev" )
+check_block_and_slaves_all kdump_get_fs_type "$(get_maj_min "$_dev")"
+}
+
+kdump_add_mnt() {
+local _idx=$1
+local _dev="${kdump_dev[_idx]}"
+local _mp="${kdump_mnt[_idx]}"
+
+# Convert system root mounts to bind mounts
+if [ "$KDUMP_FADUMP" = "yes" -a "${_mp%/*}" = "/kdump" ] ; then
+mkdir -p "$initdir/etc"
+echo "/sysroot $_mp none bind 0 0" >> "$initdir/etc/fstab"
+return
+fi
+
+case "$_dev" in
+UUID=*|LABEL=*|PARTUUID=*|PARTLABLE=*)
+_dev=$(blkid -l -t "$_dev" -o device)
+;;

commit kdump for openSUSE:Factory

2018-04-07 Thread root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2018-04-07 20:55:05

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Sat Apr  7 20:55:05 2018 rev:97 rq:594068 version:0.8.16

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2018-03-20 
21:51:45.120278945 +0100
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2018-04-07 
20:55:07.670580126 +0200
@@ -1,0 +2,18 @@
+Fri Apr  6 16:48:57 UTC 2018 - [email protected]
+
+- kdump-pass-IPv6-address-prefix-separately.patch: IPv6 setup: pass
+  address prefix in separate dracut arg (bsc#1062026).
+- kdump-pass-all-IP-routes-to-kdump-environment.patch: IP setup:
+  pass all routes to kdump environment (bsc#1062026).
+- kdump-remove-IPv6-brackets-for-getaddrinfo.patch: Routable: do
+  not pass bracketed IPv6 to getaddrinfo (bsc#1062026).
+- kdump-skip-IPv4-if-no-address.patch: IP setup: don't bother with
+  IPv4 if there are no addresses (bsc#1062026).
+
+---
+Fri Apr  6 12:49:54 UTC 2018 - [email protected]
+
+- kdump-use-bus-id-to-identify-qeth-devices.patch: Use bus id to
+  identify qeth devices (bsc#1085617).
+
+---

New:

  kdump-pass-IPv6-address-prefix-separately.patch
  kdump-pass-all-IP-routes-to-kdump-environment.patch
  kdump-remove-IPv6-brackets-for-getaddrinfo.patch
  kdump-skip-IPv4-if-no-address.patch
  kdump-use-bus-id-to-identify-qeth-devices.patch



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.FK9Uar/_old  2018-04-07 20:55:08.842537708 +0200
+++ /var/tmp/diff_new_pack.FK9Uar/_new  2018-04-07 20:55:08.846537563 +0200
@@ -91,6 +91,11 @@
 Patch42:%{name}-nokaslr.patch
 Patch43:%{name}-no-crashkernel-in-Xen-PV-DomU.patch
 Patch44:%{name}-always-copy-timezone.patch
+Patch45:%{name}-use-bus-id-to-identify-qeth-devices.patch
+Patch46:%{name}-pass-IPv6-address-prefix-separately.patch
+Patch47:%{name}-pass-all-IP-routes-to-kdump-environment.patch
+Patch48:%{name}-remove-IPv6-brackets-for-getaddrinfo.patch
+Patch49:%{name}-skip-IPv4-if-no-address.patch
 BuildRequires:  asciidoc
 BuildRequires:  cmake
 BuildRequires:  gcc-c++
@@ -197,6 +202,11 @@
 %patch42 -p1
 %patch43 -p1
 %patch44 -p1
+%patch45 -p1
+%patch46 -p1
+%patch47 -p1
+%patch48 -p1
+%patch49 -p1
 
 %build
 export CFLAGS="%{optflags}"

++ kdump-pass-IPv6-address-prefix-separately.patch ++
From: Michal Koutny 
Date: Mon, 26 Mar 2018 20:34:19 +0200
Subject: IPv6 setup: pass address prefix in separate dracut arg
References: bsc#1062026
Upstream: merged
Git-commit: c6fb83e6ebc310c615c145962f71b3f6f4819e88

Dracut distinguishes IPv6 addresses by bracket enclosing [1] so pass an
IPv6 address as such. The address prefix is passed separately through
netmask dracut argument (that is a slight misnomer as dracut just
propagates that value to iproute2 tools [2] which interpret it as
decimal number of prefix bits).

[1] 
https://github.com/dracutdevs/dracut/blob/031e2f7bb8aea447cd87e455b184106acb4aa435/modules.d/40network/net-lib.sh#L441
[2] 
https://github.com/dracutdevs/dracut/blob/031e2f7bb8aea447cd87e455b184106acb4aa435/modules.d/40network/ifup.sh#L130
---
 init/setup-kdump.functions |7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

--- a/init/setup-kdump.functions
+++ b/init/setup-kdump.functions
@@ -586,7 +586,7 @@ function kdump_ip6_config() 
   # {{
 {
 local iface="$1"
 local bootif="$2"
-local ipaddr peeraddr gwaddr hostname
+local ipaddr peeraddr gwaddr netmask hostname
 local family cidr rest prefix
 
 hostname=$(hostname)
@@ -598,7 +598,8 @@ function kdump_ip6_config() 
   # {{
 
ipaddr="${cidr%/*}"
prefix="${cidr:${#ipaddr}}"
-   ipaddr="[$ipaddr]$prefix"
+   netmask="${prefix:1}"
+   ipaddr="[$ipaddr]"
set -- $rest
 
 if [ "$1" == "peer" ] ; then
@@ -609,7 +610,7 @@ function kdump_ip6_config() 
   # {{
peeraddr=
 fi
 
-   echo "ip=$ipaddr:$peeraddr:$gwaddr::$hostname:$bootif:none"
+   echo "ip=$ipaddr:$peeraddr:$gwaddr:$netmask:$hostname:$bootif:none"
 done < <(ip -6 address show dev "$iface" permanent scope global)
 } # }}}
 
++ kdump-pass-all-IP-routes-to-kdump-environment.patch ++
From: Michal Koutny 
Date: Mon, 26 Mar 2018 20:40:40 +0200
Subject: IP setup: pass all rout

commit kdump for openSUSE:Factory

2018-03-20 Thread root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2018-03-20 21:51:43

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Tue Mar 20 21:51:43 2018 rev:96 rq:586462 version:0.8.16

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2018-03-01 
12:01:38.479374750 +0100
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2018-03-20 
21:51:45.120278945 +0100
@@ -1,0 +2,6 @@
+Tue Mar 13 15:48:28 UTC 2018 - [email protected]
+
+- kdump-always-copy-timezone.patch: Always copy timezone data into
+  kdumprd (bsc#1081646).
+
+---

New:

  kdump-always-copy-timezone.patch



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.nLjci1/_old  2018-03-20 21:51:46.300236455 +0100
+++ /var/tmp/diff_new_pack.nLjci1/_new  2018-03-20 21:51:46.300236455 +0100
@@ -90,6 +90,7 @@
 Patch41:%{name}-always-kexec_load-if-kexec_file_load-fails.patch
 Patch42:%{name}-nokaslr.patch
 Patch43:%{name}-no-crashkernel-in-Xen-PV-DomU.patch
+Patch44:%{name}-always-copy-timezone.patch
 BuildRequires:  asciidoc
 BuildRequires:  cmake
 BuildRequires:  gcc-c++
@@ -195,6 +196,7 @@
 %patch41 -p1
 %patch42 -p1
 %patch43 -p1
+%patch44 -p1
 
 %build
 export CFLAGS="%{optflags}"

++ kdump-always-copy-timezone.patch ++
From: Petr Tesarik 
Date: Tue, 13 Mar 2018 16:40:13 +0100
Subject: Always copy timezone data into kdumprd
References: bsc#1081646
Upstream: merged
Git-commit: 58d5fa45ed8e7c12866765cadb520e92600c1d39

Timezone data is not always copied automatically by dracut. In fact,
the code which does that is SUSE-specific, see bsc#830060, or SUSE
patch 0020-00warpclock-Set-correct-timezone.patch.

Even with the above patch, localtime is not copied on s390(x).

Signed-off-by: Petr Tesarik 
---
 init/module-setup.sh |2 ++
 1 file changed, 2 insertions(+)

--- a/init/module-setup.sh
+++ b/init/module-setup.sh
@@ -227,4 +227,6 @@ install() {
 inst_multiple makedumpfile makedumpfile-R.pl kdumptool \
$KDUMP_REQUIRED_PROGRAMS
 inst_simple /etc/resolv.conf
+inst_simple /usr/share/zoneinfo/UTC
+inst_simple /etc/localtime
 }




commit kdump for openSUSE:Factory

2018-03-01 Thread root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2018-03-01 12:01:37

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Thu Mar  1 12:01:37 2018 rev:95 rq:580574 version:0.8.16

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2018-02-25 
11:34:59.378679984 +0100
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2018-03-01 
12:01:38.479374750 +0100
@@ -1,0 +2,12 @@
+Tue Feb 27 10:26:57 UTC 2018 - [email protected]
+
+- kdump-no-crashkernel-in-Xen-PV-DomU.patch: Do not reserve
+  crashkernel on Xen PV DomU (bsc#989792).
+
+---
+Tue Feb 27 09:06:17 UTC 2018 - [email protected]
+
+- kdump-nokaslr.patch: Add 'nokaslr' to the kdump kernel command
+  line (bsc#1075937).
+
+---

New:

  kdump-no-crashkernel-in-Xen-PV-DomU.patch
  kdump-nokaslr.patch



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.7trmeh/_old  2018-03-01 12:01:39.959321683 +0100
+++ /var/tmp/diff_new_pack.7trmeh/_new  2018-03-01 12:01:39.963321540 +0100
@@ -88,6 +88,8 @@
 Patch39:%{name}-calibrate-do-not-add-KDUMP_PHYS_LOAD-to-RAM.patch 
 Patch40:%{name}-bootloader-filter-out-KDUMPTOOL_FLAGS.patch 
 Patch41:%{name}-always-kexec_load-if-kexec_file_load-fails.patch
+Patch42:%{name}-nokaslr.patch
+Patch43:%{name}-no-crashkernel-in-Xen-PV-DomU.patch
 BuildRequires:  asciidoc
 BuildRequires:  cmake
 BuildRequires:  gcc-c++
@@ -191,6 +193,8 @@
 %patch39 -p1
 %patch40 -p1
 %patch41 -p1
+%patch42 -p1
+%patch43 -p1
 
 %build
 export CFLAGS="%{optflags}"

++ kdump-no-crashkernel-in-Xen-PV-DomU.patch ++
From: Petr Tesarik 
Date: Tue, 27 Feb 2018 11:21:31 +0100
Subject: Do not reserve crashkernel on Xen PV DomU
References: bsc#989792
Upstream: merged
Git-commit: 17b818de6320cb908f26612303d8981bf1467605

When a Xen PV DomU crashes, it canot kexec a panic kernel, because
the kexec code is not paravirtualized. Do not try to reserve any
crashkernel memory on such systems.

Signed-off-by: Petr Tesarik 
---
 kdumptool/calibrate.cc |  112 +
 1 file changed, 112 insertions(+)

--- a/kdumptool/calibrate.cc
+++ b/kdumptool/calibrate.cc
@@ -290,6 +290,102 @@ unsigned long SystemCPU::count(const cha
 }
 
 //}}}
+//{{{ HyperInfo 

+
+class HyperInfo {
+
+public:
+/**
+ * Initialize a new HyperInfo object.
+ *
+ * @param[in] procdir Mount point for procfs
+ * @param[in] sysdir  Mount point for sysfs
+ */
+HyperInfo(const char *procdir = "/proc", const char *sysdir = "/sys");
+
+protected:
+std::string m_type, m_guest_type, m_guest_variant;
+
+private:
+/**
+ * Read a file under a base directory into a string.
+ */
+void read_str(std::string &str, const FilePath &basedir,
+  const char *attr);
+
+public:
+/**
+ * Get hypervisor type.
+ */
+const std::string& type(void) const
+{ return m_type; }
+
+/**
+ * Get hypervisor guest type.
+ */
+const std::string& guest_type(void) const
+{ return m_guest_type; }
+
+/**
+ * Get hypervisor guest variant (Dom0 or DomU).
+ */
+const std::string& guest_variant(void) const
+{ return m_guest_variant; }
+};
+
+// 
-
+HyperInfo::HyperInfo(const char *procdir, const char *sysdir)
+{
+FilePath basedir(sysdir);
+basedir.appendPath("hypervisor");
+
+read_str(m_type, basedir, "type");
+read_str(m_guest_type, basedir, "guest_type");
+
+if (m_type == "xen") {
+std::string caps;
+std::string::size_type pos, next, len;
+
+basedir = procdir;
+basedir.appendPath("xen");
+read_str(caps, basedir, "capabilities");
+
+m_guest_variant = "DomU";
+pos = 0;
+while (pos != std::string::npos) {
+len = next = caps.find(',', pos);
+if (next != std::string::npos) {
+++next;
+len -= pos;
+}
+if (caps.compare(pos, len, "control_d") == 0) {
+m_guest_variant = "Dom0";
+break;
+}
+pos = next;
+}
+}
+}
+
+// 
-
+void HyperInfo::read_str(std::strin

commit kdump for openSUSE:Factory

2018-02-25 Thread root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2018-02-25 11:34:57

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Sun Feb 25 11:34:57 2018 rev:94 rq:579317 version:0.8.16

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2018-02-13 
10:26:06.264225589 +0100
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2018-02-25 
11:34:59.378679984 +0100
@@ -1,0 +2,15 @@
+Fri Feb 23 08:07:59 UTC 2018 - [email protected]
+
+- kdump-always-kexec_load-if-kexec_file_load-fails.patch: Try
+  kexec_load(2) if kexec_file_load(2) fails for any reason
+  (bsc#1080916).
+
+---
+Thu Feb 22 13:10:33 UTC 2018 - [email protected]
+
+- kdump-calibrate-do-not-add-KDUMP_PHYS_LOAD-to-RAM.patch:
+  calibrate: Do not add KDUMP_PHYS_LOAD to required RAM.
+- kdump-bootloader-filter-out-KDUMPTOOL_FLAGS.patch: bootloader:
+  Filter out KDUMPTOOL_FLAGS (bsc#1072584).
+
+---

New:

  kdump-always-kexec_load-if-kexec_file_load-fails.patch
  kdump-bootloader-filter-out-KDUMPTOOL_FLAGS.patch
  kdump-calibrate-do-not-add-KDUMP_PHYS_LOAD-to-RAM.patch



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.kbWHFE/_old  2018-02-25 11:35:00.774629299 +0100
+++ /var/tmp/diff_new_pack.kbWHFE/_new  2018-02-25 11:35:00.774629299 +0100
@@ -85,6 +85,9 @@
 Patch36:%{name}-bail-out-if-no-default-interface.patch
 Patch37:%{name}-fix-missing-index-of-kdump_Host.patch
 Patch38:%{name}-nsswitch.conf-filtering.patch
+Patch39:%{name}-calibrate-do-not-add-KDUMP_PHYS_LOAD-to-RAM.patch 
+Patch40:%{name}-bootloader-filter-out-KDUMPTOOL_FLAGS.patch 
+Patch41:%{name}-always-kexec_load-if-kexec_file_load-fails.patch
 BuildRequires:  asciidoc
 BuildRequires:  cmake
 BuildRequires:  gcc-c++
@@ -185,6 +188,9 @@
 %patch36 -p1
 %patch37 -p1
 %patch38 -p1
+%patch39 -p1
+%patch40 -p1
+%patch41 -p1
 
 %build
 export CFLAGS="%{optflags}"

++ kdump-always-kexec_load-if-kexec_file_load-fails.patch ++
From: Petr Tesarik 
Date: Fri, 23 Feb 2018 08:59:00 +0100
Subject: Try kexec_load(2) if kexec_file_load(2) fails for any reason
References: bsc#1080916
Upstream: merged
Git-commit: c9f231320fe6544b4e8aedd24a571105c4ff458a

Currently, kexec_load(2) is attempted only if kexec_file_load(2) is
unavailable. However, kexec_file_load(2) may also fail for other
reasons (e.g. missing kernel signature). It makes sense to try the
older syscall in that case.

Signed-off-by: Petr Tesarik 
---
 init/load.sh |   14 --
 1 file changed, 4 insertions(+), 10 deletions(-)

--- a/init/load.sh
+++ b/init/load.sh
@@ -164,30 +164,24 @@ function load_kdump_kexec()
 
 output=$(eval "$KEXEC_CALL -s" 2>&1)
 result=$?
-if [ $result -eq 255 ] ; then
-echo $output | grep -q 'syscall kexec_file_load not available' && 
result=7
-fi
 
 # print stderr in any case to show warnings that normally
 # would be supressed (bnc#374185)
-echo -n "$output"; echo
+echo "$output"
 
 if [ $result -eq 0 ] ; then
 kdump_logger "Loaded kdump kernel: $KEXEC_CALL -s, Result: $output"
 return 0
-elif [ $result -ne 7 ]; then
-kdump_logger "FAILED to load kdump kernel: $KEXEC_CALL -s, Result: 
$output"
-return $result
 fi
 
-# kexec_file_load(2) not available
-kdump_echo "kexec_file_load(2) not available"
+# kexec_file_load(2) failed
+kdump_echo "kexec_file_load(2) failed"
 kdump_echo "Starting load kdump kernel with kexec_load(2)"
 kdump_echo "kexec cmdline: $KEXEC_CALL"
 
 output=$(eval "$KEXEC_CALL" 2>&1)
 result=$?
-echo -n "$output";echo
+echo "$output"
 
 if [ $result -eq 0 ] ; then
 kdump_logger "Loaded kdump kernel: $KEXEC_CALL, Result: $output"
++ kdump-bootloader-filter-out-KDUMPTOOL_FLAGS.patch ++
From: Petr Tesarik 
Date: Thu, 22 Feb 2018 14:03:26 +0100
Subject: bootloader: Filter out KDUMPTOOL_FLAGS
References: bsc#1072584
Upstream: merged
Git-commit: df216d1815eae7e8c4b139e0676696de4dc447d2

The bootloader update filters out all parameters starting with
KDUMP_, MAKEDUMPFILE_ or fadump. KDUMPTOOL_FLAGS does not match, so
it is not removed and consequently multiple instances may appear on
the command line.

Signed-off-by: Petr Tesarik 
---
 init/kdump-bootloader.pl |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/init/kdump-bootloader.pl
+++ b/init/kdump-bootloader.pl
@@ -26,7 +26,7 @@ if ($ARGV[0] eq "--get") {
my $param = $rawparam;
$param =

commit kdump for openSUSE:Factory

2018-02-13 Thread root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2018-02-13 10:26:05

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Tue Feb 13 10:26:05 2018 rev:93 rq:574782 version:0.8.16

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2018-01-30 
15:37:25.282163680 +0100
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2018-02-13 
10:26:06.264225589 +0100
@@ -1,0 +2,27 @@
+Fri Feb  9 17:46:06 UTC 2018 - [email protected]
+
+- kdump-nsswitch.conf-filtering.patch 
+
+---
+Fri Feb  9 17:44:42 UTC 2018 - [email protected]
+
+- kdump-fix-missing-index-of-kdump_Host.patch: Fix missing index of
+  kdump_Host (bsc#1002617).
+
+---
+Fri Feb  9 16:09:48 UTC 2018 - [email protected]
+
+- kdump-bail-out-if-no-default-interface.patch: Bail out of
+  kdump_check_net if no default interface is found (bsc#1058202).
+
+---
+Thu Feb  8 18:38:43 UTC 2018 - [email protected]
+
+- kdump-calibrate-adjust-sizeof-struct-page.patch: calibrate:
+  Adjust sizeof(struct page).
+- kdump-calibrate-update-kernel-text-data-size.patch: calibrate:
+  Update kernel text+data size.
+- kdump-calibrate-update-user-space-requirements.patch: calibrate:
+  Update user-space requirements.
+
+---

New:

  kdump-bail-out-if-no-default-interface.patch
  kdump-calibrate-adjust-sizeof-struct-page.patch
  kdump-calibrate-update-kernel-text-data-size.patch
  kdump-calibrate-update-user-space-requirements.patch
  kdump-fix-missing-index-of-kdump_Host.patch
  kdump-nsswitch.conf-filtering.patch



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.Sj1L3S/_old  2018-02-13 10:26:07.152193595 +0100
+++ /var/tmp/diff_new_pack.Sj1L3S/_new  2018-02-13 10:26:07.156193451 +0100
@@ -79,6 +79,12 @@
 Patch30:%{name}-kdump_echo-and-kdump_logger-helpers.patch
 Patch31:%{name}-try-both-kexec_load-and-kexec_file_load.patch
 Patch32:%{name}-fix-m_threads-missing-initialization.patch
+Patch33:%{name}-calibrate-adjust-sizeof-struct-page.patch 
+Patch34:%{name}-calibrate-update-kernel-text-data-size.patch 
+Patch35:%{name}-calibrate-update-user-space-requirements.patch 
+Patch36:%{name}-bail-out-if-no-default-interface.patch
+Patch37:%{name}-fix-missing-index-of-kdump_Host.patch
+Patch38:%{name}-nsswitch.conf-filtering.patch
 BuildRequires:  asciidoc
 BuildRequires:  cmake
 BuildRequires:  gcc-c++
@@ -173,6 +179,12 @@
 %patch30 -p1
 %patch31 -p1
 %patch32 -p1
+%patch33 -p1
+%patch34 -p1
+%patch35 -p1
+%patch36 -p1
+%patch37 -p1
+%patch38 -p1
 
 %build
 export CFLAGS="%{optflags}"

++ kdump-bail-out-if-no-default-interface.patch ++
From: Petr Tesarik 
Date: Fri, 9 Feb 2018 16:55:55 +0100
Subject: Bail out of kdump_check_net if no default interface is found
References: bsc#1058202
Upstream: merged
Git-commit: 0f07085aac4f506752e2cd41a43b34b85f3f09aa

If network is required but no default interface is found, dracut
spits spurious errors, such as:

/lib/kdump/setup-kdump.functions: line 471: /sys/class/net//addr_assign_type: 
No such file or directory
/lib/kdump/setup-kdump.functions: line 472: [: : integer expression expected
/lib/kdump/setup-kdump.functions: line 476: ethtool: command not found

Signed-off-by: Petr Tesarik 
---
 init/module-setup.sh |5 +
 1 file changed, 5 insertions(+)

--- a/init/module-setup.sh
+++ b/init/module-setup.sh
@@ -33,6 +33,11 @@ kdump_check_net() {
 if [ "$kdump_host_if" = "default" ] ; then
kdump_host_if=$(kdump_default_netdev)
 fi
+if [ -z "$kdump_host_if" ] ; then
+kdump_neednet=
+return 1
+fi
+
 if [ "$kdump_net_mode" = "auto" ] ; then
kdump_net_mode=$(kdump_netdev_mode "$kdump_host_if")
 fi
++ kdump-calibrate-adjust-sizeof-struct-page.patch ++
From: Petr Tesarik 
Date: Thu, 8 Feb 2018 17:47:21 +0100
Subject: calibrate: Adjust sizeof(struct page)
Upstream: merged
Git-commit: f3aed9afcece4a6d25f9ee5ed0d4a2e82204cfa1

After adding a memcg pointer, struct page has grown by one pointer.

Signed-off-by: Petr Tesarik 
---
 kdumptool/calibrate.cc |   16 
 1 file changed, 8 insertions(+), 8 deletions(-)

--- a/kdumptool/calibrate.cc
+++ b/kdumptool/calibrate.cc
@@ -63,7 +63,7 @@
 # define KERNEL_INIT_KBMB(5)
 # define INIT_KB   MB(34)
 # define INIT_NET_KB   MB(3)
-# define SIZE_STRUCT_PAGE 

commit kdump for openSUSE:Factory

2018-01-30 Thread root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2018-01-30 15:37:15

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Tue Jan 30 15:37:15 2018 rev:92 rq:569861 version:0.8.16

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2018-01-16 
09:32:57.692109982 +0100
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2018-01-30 
15:37:25.282163680 +0100
@@ -1,0 +2,18 @@
+Fri Jan 26 13:03:47 UTC 2018 - [email protected]
+
+- kdump-fix-m_threads-missing-initialization.patch: Fix m_threads
+  missing initialization (bsc#1047609).
+
+---
+Tue Jan 16 13:35:49 UTC 2018 - [email protected]
+
+- kdump-try-both-kexec_load-and-kexec_file_load.patch: Try both
+  kexec_load(2) and kexec_file_load(2) (bsc#951144).
+
+---
+Tue Jan 16 13:32:25 UTC 2018 - [email protected]
+
+- kdump-kdump_echo-and-kdump_logger-helpers.patch: load.sh:
+  introduce kdump_echo and kdump_logger helpers (bsc#951144).
+
+---

New:

  kdump-fix-m_threads-missing-initialization.patch
  kdump-kdump_echo-and-kdump_logger-helpers.patch
  kdump-try-both-kexec_load-and-kexec_file_load.patch



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.w5zrSa/_old  2018-01-30 15:37:26.714096825 +0100
+++ /var/tmp/diff_new_pack.w5zrSa/_new  2018-01-30 15:37:26.718096638 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package kdump
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -76,6 +76,9 @@
 Patch27:%{name}-Limit-kdump-cpus-to-number-provided-by-config.patch
 Patch28:%{name}-Don-t-split-by-default.patch
 Patch29:%{name}-fillupdir-fixes.patch
+Patch30:%{name}-kdump_echo-and-kdump_logger-helpers.patch
+Patch31:%{name}-try-both-kexec_load-and-kexec_file_load.patch
+Patch32:%{name}-fix-m_threads-missing-initialization.patch
 BuildRequires:  asciidoc
 BuildRequires:  cmake
 BuildRequires:  gcc-c++
@@ -167,6 +170,9 @@
 %if 0%{?suse_version} >= 1330
 %patch29 -p1
 %endif
+%patch30 -p1
+%patch31 -p1
+%patch32 -p1
 
 %build
 export CFLAGS="%{optflags}"

++ kdump-fix-m_threads-missing-initialization.patch ++
From: Lance Wang 
Date: Fri, 19 Jan 2018 16:05:42 +0800
Subject: Fix m_threads missing initialization
References: bsc#1047609
Upstream: merged
Git-commit: 0905910da2eaa856a0e8bf26bbe6b5e4e9dc0788

kdumptool randomly outputs value for --num-threads.
So an error like following happened:

makedumpfile --num-threads 5223023572093018873 -d 31 -l /proc/vmcore.

Signed-off-by: Lance Wang 
---
 kdumptool/savedump.cc |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/kdumptool/savedump.cc
+++ b/kdumptool/savedump.cc
@@ -61,7 +61,7 @@ using std::ifstream;
 SaveDump::SaveDump()
 throw ()
 : m_dump(DEFAULT_DUMP), m_transfer(NULL), m_usedDirectSave(false),
-  m_useMakedumpfile(false), m_split(0), m_nomail(false)
+  m_useMakedumpfile(false), m_split(0), m_threads(0), m_nomail(false)
 {
 Debug::debug()->trace("SaveDump::SaveDump()");
 
++ kdump-kdump_echo-and-kdump_logger-helpers.patch ++
From: Lance Wang 
Date: Tue, 16 Jan 2018 13:37:37 +0100
Subject: load.sh: introduce kdump_echo and kdump_logger helpers
References: bsc#951144
Upstream: merged
Git-commit: b76b8fccbac6a7d2340d0452a6ba86530f588bfa

Instead of checking the verbosity flags every time, check them once
and provide an appropriate function definition.

Signed-off-by: Lance Wang 
---
 init/load.sh |   34 +++---
 1 file changed, 23 insertions(+), 11 deletions(-)

--- a/init/load.sh
+++ b/init/load.sh
@@ -163,9 +163,7 @@ function load_kdump_kexec()
 KEXEC_CALL="$KEXEC -p $kdump_kernel --append=\"$kdump_commandline\""
 KEXEC_CALL="$KEXEC_CALL --initrd=$kdump_initrd $kexec_options"
 
-if [ $((${KDUMP_VERBOSE:-0} & 4)) -gt 0 ] ; then
-echo "Loading kdump kernel: $KEXEC_CALL"
-fi
+kdump_echo "Loading kdump kernel: $KEXEC_CALL"
 
 local output
 output=$(eval "$KEXEC_CALL" 2>&1)
@@ -179,14 +177,10 @@ function load_kdump_kexec()
 # would be supressed (bnc#374185)
 echo -n "$output"
 
-if [ $((${KDUMP_VERBOSE:-0} & 1)) -gt 0 ] ; then
-if [ $result -eq 0 ] ; then
-logger -i -t kdump \
-   "Loaded kdump kernel: $KEXE

commit kdump for openSUSE:Factory

2018-01-16 Thread root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2018-01-16 09:32:56

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Tue Jan 16 09:32:56 2018 rev:91 rq:562913 version:0.8.16

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2017-12-08 
21:47:44.142172193 +0100
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2018-01-16 
09:32:57.692109982 +0100
@@ -1,0 +2,12 @@
+Mon Nov 27 15:23:36 UTC 2017 - [email protected]
+
+- Add kdump-fillupdir-fixes.patch and correct specfile to build
+  with new fillupdir location
+
+---
+Thu Nov 23 13:51:22 UTC 2017 - [email protected]
+
+- Replace references to /var/adm/fillup-templates with new 
+  %_fillupdir macro (boo#1069468)
+
+---

New:

  kdump-fillupdir-fixes.patch



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.8tOWOz/_old  2018-01-16 09:32:59.700016036 +0100
+++ /var/tmp/diff_new_pack.8tOWOz/_new  2018-01-16 09:32:59.708015662 +0100
@@ -18,6 +18,11 @@
 
 # on systemd distros, rpm-build requires systemd-rpm-macros,
 # which in turn defines %systemd_requires
+#Compat macro for new _fillupdir macro introduced in Nov 2017
+%if ! %{defined _fillupdir}
+  %define _fillupdir /var/adm/fillup-templates
+%endif
+
 %define systemd_present %{defined systemd_requires}
 
 %define dracutlibdir %{_prefix}/lib/dracut
@@ -70,6 +75,7 @@
 Patch26:%{name}-Dont-exit-even-if-initrd-is-not-built.patch
 Patch27:%{name}-Limit-kdump-cpus-to-number-provided-by-config.patch
 Patch28:%{name}-Don-t-split-by-default.patch
+Patch29:%{name}-fillupdir-fixes.patch
 BuildRequires:  asciidoc
 BuildRequires:  cmake
 BuildRequires:  gcc-c++
@@ -158,6 +164,9 @@
 %patch26 -p1
 %patch27 -p1
 %patch28 -p1
+%if 0%{?suse_version} >= 1330
+%patch29 -p1
+%endif
 
 %build
 export CFLAGS="%{optflags}"
@@ -182,7 +191,7 @@
 # remove executable bit from non-binaries
 chmod -x %{buildroot}/lib/kdump/setup-kdump.functions
 # empty directory
-mkdir %{buildroot}/var/crash
+mkdir -p %{buildroot}/var/crash
 %if 0%{?suse_version} > 1310
 rm -r %{buildroot}/lib/mkinitrd
 %endif
@@ -205,7 +214,7 @@
 
 %post
 # change only permission if the file exists before /etc/sysconfig/kdump
-# has been created from /var/adm/fillup-templates/sysconfig.kdump
+# has been created from %{_fillupdir}/sysconfig.kdump
 change_permission=0
 if [ ! -f %{_sysconfdir}/sysconfig/kdump ] ; then
 change_permission=1
@@ -258,7 +267,7 @@
 %{_mandir}/man7/kdump.7%{ext_man}
 %{_mandir}/man8/kdumptool.8%{ext_man}
 %{_mandir}/man8/mkdumprd.8%{ext_man}
-%{_localstatedir}/adm/fillup-templates/sysconfig.kdump
+%{_fillupdir}/sysconfig.kdump
 %if 0%{?suse_version} <= 1310
 /lib/mkinitrd/scripts/*-kdump.sh
 /lib/mkinitrd/scripts/setup-kdumpfs.sh

++ kdump-fillupdir-fixes.patch ++
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 77205e1..3032d3d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -182,7 +182,7 @@ ADD_CUSTOM_TARGET(
 INSTALL(FILES
 ${CMAKE_CURRENT_BINARY_DIR}/sysconfig.kdump
 DESTINATION
-/var/adm/fillup-templates/
+/usr/share/fillup-templates/
 )
 
 ADD_CUSTOM_COMMAND(




commit kdump for openSUSE:Factory

2017-12-08 Thread root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2017-12-08 21:47:35

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Fri Dec  8 21:47:35 2017 rev:90 rq:548155 version:0.8.16

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2017-06-30 
18:39:36.849321892 +0200
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2017-12-08 
21:47:44.142172193 +0100
@@ -1,0 +2,8 @@
+Wed Nov 15 12:25:57 UTC 2017 - [email protected]
+
+- kdump-Dont-exit-even-if-initrd-is-not-built.patch: fadump restart does not
+  always rebuild initramfs but may need to re-register (bsc#1047781).
+- kdump-Limit-kdump-cpus-to-number-provided-by-config.patch (bsc#1036223, 
bsc#1068234).
+- kdump-Don-t-split-by-default.patch (bsc#1036223, bsc#1068234).
+
+---

New:

  kdump-Don-t-split-by-default.patch
  kdump-Dont-exit-even-if-initrd-is-not-built.patch
  kdump-Limit-kdump-cpus-to-number-provided-by-config.patch



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.v2f5Aa/_old  2017-12-08 21:47:44.906139330 +0100
+++ /var/tmp/diff_new_pack.v2f5Aa/_new  2017-12-08 21:47:44.906139330 +0100
@@ -67,6 +67,9 @@
 Patch23:%{name}-explicitly-request-zFCP-devices.patch
 Patch24:%{name}-fail-if-fadump-cannot-be-registered.patch
 Patch25:%{name}-activate-QETH-devices.patch
+Patch26:%{name}-Dont-exit-even-if-initrd-is-not-built.patch
+Patch27:%{name}-Limit-kdump-cpus-to-number-provided-by-config.patch
+Patch28:%{name}-Don-t-split-by-default.patch
 BuildRequires:  asciidoc
 BuildRequires:  cmake
 BuildRequires:  gcc-c++
@@ -152,6 +155,9 @@
 %patch23 -p1
 %patch24 -p1
 %patch25 -p1
+%patch26 -p1
+%patch27 -p1
+%patch28 -p1
 
 %build
 export CFLAGS="%{optflags}"

++ kdump-Don-t-split-by-default.patch ++
>From 51a68c31497d1895602d5c6851e23a9027d9675d Mon Sep 17 00:00:00 2001
From: Ankit Kumar 
Date: Thu, 10 Aug 2017 15:04:32 +0530
Subject: [PATCH] Don't split by default

References: bsc#1036223, bsc#1068234
Patch-mainline: v0.8.17
Git-commit: 51a68c31497d1895602d5c6851e23a9027d9675d

Currently, we are default'ing to "SPILT" as well as multi-threading
when KDUMPTOOL_FLAGS="". Ensure split is enabled only when it is set
explicitly with KDUMPTOOL_FLAGS="SPLIT".

Signed-off-by: Ankit Kumar 
---
 kdumptool/savedump.cc | 11 ---
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/kdumptool/savedump.cc b/kdumptool/savedump.cc
index ec66e63bd29b..e832bf98b762 100644
--- a/kdumptool/savedump.cc
+++ b/kdumptool/savedump.cc
@@ -294,15 +294,12 @@ void SaveDump::saveDump(const RootDirURLVector &urlv)
 if (cpus > online_cpus)
 cpus = online_cpus;
 }
-if (!config->kdumptoolContainsFlag("NOSPLIT") &&
-!config->kdumptoolContainsFlag("SINGLE") &&
+if (!config->kdumptoolContainsFlag("SINGLE") &&
 cpus > 1) {
-   if (!useElf)
-   m_split = cpus;
-   else
-   cerr << "Splitting ELF dumps is not supported." << endl;
 
-if (config->kdumptoolContainsFlag("SPLIT")) {
+/* The check for NOSPLIT is for backward compatibility */
+if (config->kdumptoolContainsFlag("SPLIT") &&
+!config->kdumptoolContainsFlag("NOSPLIT")) {
 if (!useElf)
 m_split = cpus;
 else
-- 
2.13.6

++ kdump-Dont-exit-even-if-initrd-is-not-built.patch ++
>From 086068496508087b68029ae31a93ed5d3e4ac2cb Mon Sep 17 00:00:00 2001
From: Ankit Kumar 
Date: Mon, 7 Aug 2017 20:35:04 +0530
Subject: [PATCH] Don't exit even if initrd is not built

References: bsc#1047781
Patch-mainline: v0.8.17
Git-commit: 086068496508087b68029ae31a93ed5d3e4ac2cb

In case where there is no change in kdump config, new initrd won't be
built. Restarting kdump.service in above case exits as initrd is same
as older. As control doesn't proceed further, it fails to enable dump
configuration.

This patch fixes above mentioned issue by proceeding further and enabling
dump configuration.

Signed-off-by: Ankit Kumar 
Acked-by: Michal Suchanek 
---
 init/load.sh | 12 ++--
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/init/load.sh b/init/load.sh
index 4fc7a82e7199..6910bc546d9c 100755
--- a/init/load.sh
+++ b/init/load.sh
@@ -309,13 +309,13 @@ if [ "$1" = "--update" ] ; then
 rebuild_kdumprd || exit 1
 after=$(stat -c %Y $kdump_initrd)
 
-# If the initial ram disk was not updated,
-# do not execute kexec again. This script
-# is called from kdump.service and
+# This script is called from kdump.service and
 # k

commit kdump for openSUSE:Factory

2017-06-30 Thread root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2017-06-30 18:39:25

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Fri Jun 30 18:39:25 2017 rev:89 rq:507135 version:0.8.16

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2017-06-20 
10:59:20.308487979 +0200
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2017-06-30 
18:39:36.849321892 +0200
@@ -1,0 +2,60 @@
+Thu Jun 29 16:31:26 UTC 2017 - [email protected]
+
+- kdump-activate-QETH-devices.patch: Activate QETH network devices
+  (bsc#1038669).
+
+---
+Tue Jun 27 06:06:54 UTC 2017 - [email protected]
+
+- Drop kdump-do-not-reload-FADUMP-on-CPU-memory-hotplug.patch:
+  Reload is needed even with fadmp (bsc#1040567).
+
+---
+Mon Jun 26 11:24:47 UTC 2017 - [email protected]
+
+- kdump-fail-if-fadump-cannot-be-registered.patch: Fail at startup
+  if fadump cannot be registered (bsc#1040567).
+- kdump-do-not-reload-FADUMP-on-CPU-memory-hotplug.patch: Do not
+  reload on CPU/memory hotplug when using FADUMP (bsc#1040567).
+
+---
+Fri Jun 23 12:56:45 UTC 2017 - [email protected]
+
+- kdump-explicitly-request-zFCP-devices.patch: Explicitly request
+  zFCP devices in kdump initrd (bsc#1008352).
+
+---
+Fri Jun 23 11:51:11 UTC 2017 - [email protected]
+
+- kdump-move-class-SystemCPU-to-header-file.patch: Move class
+  SystemCPU to a header file (bsc#1036223).
+- kdump-treat-KDUMP_CPUS-0-as-all-available-CPUs.patch: Treat
+  KDUMP_CPUS=0 as "all available CPUs" (bsc#1036223).
+- kdump-multithreading-by-default.patch: Use multithreading by
+  default (bsc#1036223).
+
+---
+Thu Jun 22 12:42:50 UTC 2017 - [email protected]
+
+- kdump-fix-save_dump-to-NFS.patch: Fix save_dump to NFS targets
+  (bsc#1045541).
+- kdump-invoke-subcommand-destructors-on-exit.patch: Invoke
+  subcommand destructors on exit (bsc#1045541).
+
+---
+Fri Jun 16 12:04:14 UTC 2017 - [email protected]
+
+- kdump-do-not-free-fadump-memory-when-immediate-reboot-is-requested.patch
+  Releasing fadump memory can take a long time so skip it when
+  rebooting anyway (bsc#1040610).
+
+---
+Tue Jun 15 12:55:34 UTC 2017 - [email protected]
+
+- kdump-do-not-check-bind-mount.patch: Do not request filesystem
+  check on bind mounts (bsc#1034169).
+- kdump-remount-sysroot-readwrite.patch: Also remount writable
+  any mounts that were already mounted readonly by systemd
+  (bsc#1034169).
+
+---
@@ -28,0 +89,8 @@
+Thu Jun  1 14:50:25 UTC 2017 - [email protected]
+
+- kdump-source-save_dump.patch: save_dump.sh is designed to be
+  sourced and has numerous toplevel return statements. Source it
+  from the service definition as well to prevent bash complaints.
+  (bcs#1034169).
+
+---
@@ -157 +225 @@
---
+---

New:

  kdump-activate-QETH-devices.patch
  kdump-do-not-check-bind-mount.patch
  kdump-do-not-free-fadump-memory-when-immediate-reboot-is-requested.patch
  kdump-explicitly-request-zFCP-devices.patch
  kdump-fail-if-fadump-cannot-be-registered.patch
  kdump-fix-save_dump-to-NFS.patch
  kdump-invoke-subcommand-destructors-on-exit.patch
  kdump-move-class-SystemCPU-to-header-file.patch
  kdump-multithreading-by-default.patch
  kdump-remount-sysroot-readwrite.patch
  kdump-source-save_dump.patch
  kdump-treat-KDUMP_CPUS-0-as-all-available-CPUs.patch



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.v6iJSV/_old  2017-06-30 18:39:37.661207696 +0200
+++ /var/tmp/diff_new_pack.v6iJSV/_new  2017-06-30 18:39:37.665207133 +0200
@@ -55,6 +55,18 @@
 Patch11:%{name}-Routable-preferred-source-address.patch
 Patch12:%{name}-URLTransfer-complete-target.patch
 Patch13:%{name}-prepend-IP-address.patch
+Patch14:
%{name}-do-not-free-fadump-memory-when-immediate-reboot-is-requested.patch
+Patch15:%{name}-do-not-check-bind-mount.patch
+Patch16:%{name}-source-save_dump.patch
+Patch17:%{name}-remount-sysroot-readwrite.patch
+Patch18:%{name}-fix-save_dump-to

commit kdump for openSUSE:Factory

2017-06-20 Thread root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2017-06-20 10:58:21

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Tue Jun 20 10:58:21 2017 rev:88 rq:503694 version:0.8.16

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2017-05-20 
10:11:33.453734485 +0200
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2017-06-20 
10:59:20.308487979 +0200
@@ -1,0 +2,27 @@
+Wed Jun 14 12:48:34 UTC 2017 - [email protected]
+
+- kdump-Routable-preferred-source-address.patch: Routable: parse
+  and store preferred source address (FATE#321844).
+- kdump-URLTransfer-complete-target.patch: Use the complete target
+  URL for URLTransfer (FATE#321844).
+- kdump-prepend-IP-address.patch: Prepend IP address to remote
+  target subdirectory (FATE#321844).
+
+---
+Thu Jun  8 15:02:09 UTC 2017 - [email protected]
+
+- kdump-fix-service-files.patch: Fix kdump-related services
+  (bsc#1021484).
+
+---
+Thu Jun  8 13:10:41 UTC 2017 - [email protected]
+
+- kernel-ELF-aarch64: Test data for aarch64 findkernel.
+- kdump-KDUMP_SSH_IDENTITY.patch: Update with later upstream fixes.
+
+---
+Wed Jun  7 11:43:46 UTC 2017 - [email protected]
+
+- kdump-aarch64.patch: kdumptool: add aarch64 (bsc#1033464).
+
+---

New:

  kdump-Routable-preferred-source-address.patch
  kdump-URLTransfer-complete-target.patch
  kdump-aarch64.patch
  kdump-fix-service-files.patch
  kdump-prepend-IP-address.patch
  kernel-ELF-aarch64



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.eK984C/_old  2017-06-20 10:59:20.932400035 +0200
+++ /var/tmp/diff_new_pack.eK984C/_new  2017-06-20 10:59:20.940398908 +0200
@@ -40,6 +40,7 @@
 Group:  System/Kernel
 Url:https://github.com/ptesarik/kdump
 Source: %{name}-%{version}.tar.bz2
+Source1:kernel-ELF-aarch64
 Source2:%{name}-rpmlintrc
 Patch1: %{name}-cmake-compat.patch
 Patch2: %{name}-KDUMP_SSH_IDENTITY.patch
@@ -49,6 +50,11 @@
 Patch6: %{name}-pre-generate-mount-units.patch
 Patch7: %{name}-bind-mount-sysroot.patch
 Patch8: %{name}-x86_64-kexec-file-syscall.patch
+Patch9: %{name}-aarch64.patch
+Patch10:%{name}-fix-service-files.patch
+Patch11:%{name}-Routable-preferred-source-address.patch
+Patch12:%{name}-URLTransfer-complete-target.patch
+Patch13:%{name}-prepend-IP-address.patch
 BuildRequires:  asciidoc
 BuildRequires:  cmake
 BuildRequires:  gcc-c++
@@ -116,6 +122,12 @@
 %patch6 -p1
 %patch7 -p1
 %patch8 -p1
+%patch9 -p1
+cp %{S:1} tests/data/
+%patch10 -p1
+%patch11 -p1
+%patch12 -p1
+%patch13 -p1
 
 %build
 export CFLAGS="%{optflags}"
@@ -151,14 +163,14 @@
 ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rckdump
 %else
 rm %{buildroot}/usr/lib/systemd/system/kdump.service
-rm %{buildroot}/usr/lib/systemd/system/kdump-rebuild-initrd.service
+rm %{buildroot}/usr/lib/systemd/system/kdump-early.service
 ln -s ../..%{_initddir}/boot.kdump %{buildroot}%{_sbindir}/rckdump
 %endif
 
 %if %{systemd_present}
 %pre
 %service_add_pre kdump.service
-%service_add_pre kdump-rebuild-initrd.service
+%service_add_pre kdump-early.service
 %endif
 
 %post
@@ -171,7 +183,7 @@
 %if %{systemd_present}
 %{fillup_only -n kdump}
 %service_add_post kdump.service
-%service_add_post kdump-rebuild-initrd.service
+%service_add_post kdump-early.service
 %else
 %{fillup_and_insserv -n kdump boot.kdump}
 %endif
@@ -188,7 +200,7 @@
 echo "Stopping kdump ..."
 %if %{systemd_present}
 %service_del_preun kdump.service
-%service_del_preun kdump-rebuild-initrd.service
+%service_del_preun kdump-early.service
 %else
 %stop_on_removal boot.kdump
 %endif
@@ -200,7 +212,7 @@
 rm /var/log/dump >/dev/null 2>&1 || true
 %if %{systemd_present}
 %service_del_postun kdump.service
-%service_del_postun kdump-rebuild-initrd.service
+%service_del_postun kdump-early.service
 %else
 %restart_on_update boot.kdump
 %insserv_cleanup
@@ -230,7 +242,7 @@
 %{_udevrulesdir}/70-kdump.rules
 %if %{systemd_present}
 %{_unitdir}/kdump.service
-%{_unitdir}/kdump-rebuild-initrd.service
+%{_unitdir}/kdump-early.service
 %else
 %{_sysconfdir}/init.d/boot.kdump
 %endif

++ kdump-KDUMP_SSH_IDENTITY.patch ++
--- /var/tmp/diff_new_pack.eK984C/_old  2017-06-20 10:59:20.980393270 +0200
+++ /var/tmp/diff_new_pack.eK984C/_new  2017-06-20 10:59:20.980393270 +0200
@@ -3,6 +3,8 @@
 Subject: Add KD

commit kdump for openSUSE:Factory

2017-05-20 Thread root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2017-05-20 10:11:27

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Sat May 20 10:11:27 2017 rev:87 rq:495621 version:0.8.16

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2017-03-15 
01:59:45.444893391 +0100
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2017-05-20 
10:11:33.453734485 +0200
@@ -1,0 +2,27 @@
+Wed May 17 13:31:11 UTC 2017 - [email protected]
+
+- kdump-x86_64-kexec-file-syscall.patch: add -s on x86_64 for
+  signature verification of kernel. (fate#315018, bsc#884453)
+
+---
+Wed May 17 13:18:23 UTC 2017 - [email protected]
+
+- kdump-bind-mount-sysroot.patch: Convert sysroot to a bind mount
+  in kdump initrd (bsc#976864).
+- kdump-pre-generate-mount-units.patch: Pre-generate kdump mount
+  units (bsc#942895).
+- kdump-always-pass-kernelver-to-dracut.patch: Always pass kernel
+  version to dracut (bsc#900418).
+- kdump-no-xen-secondary-kernel.patch: Avoid Xenlinux (aka
+  traditional, Xenified or SUSE) kernels as kdump kernel
+  (bsc#900418, bsc#974270).
+
+---
+Tue May 16 11:31:53 UTC 2017 - [email protected]
+
+- kdump-KDUMP_SSH_IDENTITY.patch: Add KDUMP_SSH_IDENTITY config
+  option (FATE#321583).
+- kdump-KDUMP_SSH_IDENTITY-cfg.patch: Add KDUMP_SSH_IDENTITY to the
+  config file template (FATE#321583).
+
+---
@@ -20,0 +48,16 @@
+  o Improve systemd integration (FATE#319020, bsc#900134,
+bsc#909515, bsc#936363, bsc#936475, bsc#936489, bsc#942895,
+bsc#943902, bsc#944606, bsc#947825, bsc#948913).
+  o Use OpenSSH for SSH and SFTP (FATE#318874, bsc#917747).
+  o Improve 'kdumptool calibrate' (FATE#318842, bsc#882082,
+bsc#947539, bsc#952141, bsc#953732).
+  o Improve network initialization (bsc#943214, bsc#944201,
+bsc#980328).
+  o Fix FADUMP with systemd (bsc#917846, bsc#923790, bsc#944699).
+  o Fix saving to XFS (bsc#964206).
+  o Use full path to dracut (bsc#989972, bsc#990200,
+CVE-2016-5759).
+  o Documentation updates (bsc#987862, bsc#997104).
+  o Various smaller fixes (bsc#905690, bsc#927451, bsc#932339,
+bsc#934581, bsc#941088, bsc#946242, bsc#948956, bsc#951844,
+bsc#952149, bsc#970708, bsc#973213, bsc#984799, bsc#986081).

New:

  kdump-KDUMP_SSH_IDENTITY-cfg.patch
  kdump-KDUMP_SSH_IDENTITY.patch
  kdump-always-pass-kernelver-to-dracut.patch
  kdump-bind-mount-sysroot.patch
  kdump-no-xen-secondary-kernel.patch
  kdump-pre-generate-mount-units.patch
  kdump-x86_64-kexec-file-syscall.patch



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.qsKpR6/_old  2017-05-20 10:11:34.081645764 +0200
+++ /var/tmp/diff_new_pack.qsKpR6/_new  2017-05-20 10:11:34.081645764 +0200
@@ -42,6 +42,13 @@
 Source: %{name}-%{version}.tar.bz2
 Source2:%{name}-rpmlintrc
 Patch1: %{name}-cmake-compat.patch
+Patch2: %{name}-KDUMP_SSH_IDENTITY.patch
+Patch3: %{name}-KDUMP_SSH_IDENTITY-cfg.patch
+Patch4: %{name}-no-xen-secondary-kernel.patch
+Patch5: %{name}-always-pass-kernelver-to-dracut.patch
+Patch6: %{name}-pre-generate-mount-units.patch
+Patch7: %{name}-bind-mount-sysroot.patch
+Patch8: %{name}-x86_64-kexec-file-syscall.patch
 BuildRequires:  asciidoc
 BuildRequires:  cmake
 BuildRequires:  gcc-c++
@@ -102,6 +109,13 @@
 %prep
 %setup -q
 %patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
 
 %build
 export CFLAGS="%{optflags}"

++ kdump-KDUMP_SSH_IDENTITY-cfg.patch ++
Date: Tue May 16 13:30:14 2017 +0200
From: Petr Tesarik 
Subject: Add KDUMP_SSH_IDENTITY to the config file template
References: FATE#321583
Git-commit: c257bdb31fa65133fe3a380b09e61566fefef4fe
Upstream: v0.8.17

Also put the new option to the config file template, so it can be
modified using the standard /etc/sysconfig editor.

Signed-off-by: Petr Tesarik 

---
 sysconfig.kdump.in |   10 ++
 1 file changed, 10 insertions(+)

--- a/sysconfig.kdump.in
+++ b/sysconfig.kdump.in
@@ -383,3 +383,13 @@ KDUMP_NOTIFICATION_CC=""
 #
 # See also: kdump(5)
 KDUMP_HOST_KEY=""
+
+## Type:string
+## Default: ""
+## ServiceRestart: kdump
+#
+# List of SSH identity files for public key authentication. If empty, kdump
+# will try all standard OpenSSH identities for the 'root' user.
+#
+# See also: kdump(5)
+KDUMP_SSH_IDENTITY=""
++ kdump-KDUMP_SSH_IDENTITY.patch ++
Date: Tue May 16 13:23:49 2017 +0200

commit kdump for openSUSE:Factory

2017-03-14 Thread root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2017-03-15 01:04:44

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Wed Mar 15 01:04:44 2017 rev:86 rq:478691 version:0.8.16

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2016-10-06 
12:28:50.0 +0200
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2017-03-15 
01:59:45.444893391 +0100
@@ -1,0 +2,5 @@
+Sat Feb 18 14:38:57 CET 2017 - [email protected]
+
+- Don't require insserv if we use systemd
+
+---



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.NISzWG/_old  2017-03-15 01:59:46.124797269 +0100
+++ /var/tmp/diff_new_pack.NISzWG/_new  2017-03-15 01:59:46.124797269 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package kdump
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -58,7 +58,7 @@
 Requires:   kexec-tools
 Requires:   makedumpfile
 Requires:   openssh
-PreReq: %insserv_prereq %fillup_prereq
+PreReq: %fillup_prereq
 PreReq: coreutils
 PreReq: sed
 Recommends: cifs-utils
@@ -70,6 +70,8 @@
 ExcludeArch:s390 ppc
 %if %{systemd_present}
 BuildRequires:  systemd
+%else
+PreReq: %insserv_prereq
 %endif
 %if 0%{?suse_version} > 1310
 PreReq: dracut




commit kdump for openSUSE:Factory

2016-10-06 Thread h_root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2016-10-06 12:28:48

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2016-02-23 
16:53:29.0 +0100
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2016-10-06 
12:28:50.0 +0200
@@ -1,0 +2,35 @@
+Wed Oct  5 13:12:53 UTC 2016 - [email protected]
+
+- Remove kdump-helpers from Provides. This was needed to allow
+  upgrading in SLE10, but this distribution is discontinued now.
+
+---
+Wed Oct  5 10:55:39 UTC 2016 - [email protected]
+
+- kdump-cmake-compat.patch: Build fix for pre-3.0.2 cmake.
+
+---
+Wed Oct  5 07:53:00 UTC 2016 - [email protected]
+
+- Update to 0.8.16
+- Drop patches now in mainline:
+  o 0001-multipath-Write-proper-regex-into-multipath-conf.patch
+  o kdump-add-IPv6-KDUMP_NETCONFIG-modes.patch
+  o kdump-bootloader-grub2.patch
+  o kdump-calibrate-systemd-initramfs.patch
+  o kdump-calibrate-systemd-runtime.patch
+  o kdump-count-const-slabs.patch
+  o kdump-count-framebuffer.patch
+  o kdump-enable-fadump-ppc64le.patch
+  o kdump-fadump-bootloader-always.patch
+  o kdump-fadump-keep-sysroot.patch
+  o kdump-get-multipath-wwid-from-sysfs.patch
+  o kdump-move-network-setup-to-module-setup.patch
+  o kdump-remove-root-and-resume.patch
+  o kdump-split-kdump_default_netdev.patch
+  o kdump-systemd-support.patch
+  o kdump-use-fstab-device.patch
+- Drop obsolete patches:
+  o kdump-0.8.15-fix-shebang.patch
+
+---

Old:

  0001-multipath-Write-proper-regex-into-multipath-conf.patch
  kdump-0.8.15-fix-shebang.patch
  kdump-0.8.15.tar.bz2
  kdump-add-IPv6-KDUMP_NETCONFIG-modes.patch
  kdump-bootloader-grub2.patch
  kdump-calibrate-systemd-initramfs.patch
  kdump-calibrate-systemd-runtime.patch
  kdump-count-const-slabs.patch
  kdump-count-framebuffer.patch
  kdump-enable-fadump-ppc64le.patch
  kdump-fadump-bootloader-always.patch
  kdump-fadump-keep-sysroot.patch
  kdump-get-multipath-wwid-from-sysfs.patch
  kdump-move-network-setup-to-module-setup.patch
  kdump-remove-root-and-resume.patch
  kdump-split-kdump_default_netdev.patch
  kdump-systemd-support.patch
  kdump-use-fstab-device.patch
  kdump.service

New:

  kdump-0.8.16.tar.bz2
  kdump-cmake-compat.patch



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.gEwUM5/_old  2016-10-06 12:28:52.0 +0200
+++ /var/tmp/diff_new_pack.gEwUM5/_new  2016-10-06 12:28:52.0 +0200
@@ -16,6 +16,10 @@
 #
 
 
+# on systemd distros, rpm-build requires systemd-rpm-macros,
+# which in turn defines %systemd_requires
+%define systemd_present %{defined systemd_requires}
+
 %define dracutlibdir %{_prefix}/lib/dracut
 
 %{!?_udevdir: %global _udevdir %(pkg-config --variable=udevdir udev)}
@@ -28,76 +32,57 @@
 %endif
 %define _udevrulesdir %{_udevdir}/rules.d
 
-Url:https://github.com/ptesarik/kdump
-
 Name:   kdump
-Version:0.8.15
+Version:0.8.16
 Release:0
-Requires:   curl
-Requires:   makedumpfile
-Requires:   openssh
 Summary:Script for kdump
 License:GPL-2.0+
 Group:  System/Kernel
+Url:https://github.com/ptesarik/kdump
+Source: %{name}-%{version}.tar.bz2
+Source2:%{name}-rpmlintrc
+Patch1: %{name}-cmake-compat.patch
 BuildRequires:  asciidoc
 BuildRequires:  cmake
 BuildRequires:  gcc-c++
+BuildRequires:  libblkid-devel
 BuildRequires:  libcurl-devel
 BuildRequires:  libelf-devel
 BuildRequires:  libesmtp-devel
 BuildRequires:  libopenssl-devel
-BuildRequires:  libssh2-devel
 BuildRequires:  libxslt
-BuildRequires:  pkg-config
+BuildRequires:  pkgconfig
 BuildRequires:  udev
 BuildRequires:  zlib-devel
+Requires:   curl
+Requires:   kexec-tools
+Requires:   makedumpfile
+Requires:   openssh
+PreReq: %insserv_prereq %fillup_prereq
+PreReq: coreutils
+PreReq: sed
+Recommends: cifs-utils
+Recommends: nfs-client
 #!BuildIgnore:  fop
-%if 0%{?suse_version} > 1220
+# update should detect the split-off from kexec-tools
+Provides:   kexec-tools:%{_initddir}/kdump
+BuildRoot:  %{_tmppath}/%{name}-%{version}-build
+ExcludeArch:s390 ppc
+%if %{systemd_present}
 BuildRequires:  systemd
 %endif
-PreReq: %insserv_prereq %fillup_prereq
 %if 0%{?suse_version} > 1310
 PreReq: dracut
 %else
 PreReq: mkinitrd
 %endif
-Source: %{name}-%{versi

commit kdump for openSUSE:Factory

2016-02-23 Thread h_root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2016-02-23 16:53:27

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2014-11-26 
10:32:42.0 +0100
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2016-02-23 
16:53:29.0 +0100
@@ -1,0 +2,5 @@
+Thu Feb 11 14:54:58 UTC 2016 - [email protected]
+
+- explicitely build with -std=gnu++98
+
+---



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.PlNs3V/_old  2016-02-23 16:53:30.0 +0100
+++ /var/tmp/diff_new_pack.PlNs3V/_new  2016-02-23 16:53:30.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package kdump
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -138,7 +138,7 @@
 
 %build
 export CFLAGS="%optflags"
-export CXXFLAGS="%optflags"
+export CXXFLAGS="%optflags -std=gnu++98"
 mkdir build
 cd build
 cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} ..




commit kdump for openSUSE:Factory

2014-11-26 Thread h_root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2014-11-26 10:32:39

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2014-11-15 
12:17:54.0 +0100
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2014-11-26 
10:32:42.0 +0100
@@ -1,0 +2,7 @@
+Sun Nov 23 05:31:00 UTC 2014 - Led 
+
+- fix shebang in rc.kdump.functions
+- add patches:
+  * kdump-0.8.15-fix-shebang.patch
+
+---

New:

  kdump-0.8.15-fix-shebang.patch



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.e4PlQ1/_old  2014-11-26 10:32:43.0 +0100
+++ /var/tmp/diff_new_pack.e4PlQ1/_new  2014-11-26 10:32:43.0 +0100
@@ -80,6 +80,7 @@
 Patch13:%{name}-fadump-bootloader-always.patch
 Patch14:%{name}-bootloader-grub2.patch
 Patch15:%{name}-fadump-keep-sysroot.patch
+Patch16:%{name}-0.8.15-fix-shebang.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # rename "kdump-helpers" (10.3) -> "kdump" (11.0/SP2)
 Provides:   kdump-helpers = %{version}
@@ -133,6 +134,7 @@
 %patch13 -p1
 %patch14 -p1
 %patch15 -p1
+%patch16 -p1
 
 %build
 export CFLAGS="%optflags"

++ kdump-0.8.15-fix-shebang.patch ++
diff -Ndur kdump-0.8.15/init/rc.kdump.functions 
kdump-0.8.15-fix-shebang/init/rc.kdump.functions
--- kdump-0.8.15/init/rc.kdump.functions2014-06-23 18:47:39.0 
+0300
+++ kdump-0.8.15-fix-shebang/init/rc.kdump.functions2014-11-23 
07:28:42.856444929 +0200
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 #
 #  Copyright 2005 Red Hat, Inc.
 #  Author:  Jeff Moyer 
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



commit kdump for openSUSE:Factory

2014-11-15 Thread h_root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2014-11-15 11:44:26

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2014-09-28 
19:55:39.0 +0200
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2014-11-15 
12:17:54.0 +0100
@@ -1,0 +2,5 @@
+Sun Nov 09 05:26:00 UTC 2014 - Led 
+
+- fix bashisms in post/postun scripts
+
+---



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.lfIRqe/_old  2014-11-15 12:17:55.0 +0100
+++ /var/tmp/diff_new_pack.lfIRqe/_new  2014-11-15 12:17:55.0 +0100
@@ -183,11 +183,11 @@
 change_permission=1
 fi
 %{fillup_and_insserv -n kdump boot.kdump}
-if (( $change_permission )) ; then
+if [ "$change_permission" = 1 ]; then
 chmod 0600 /etc/sysconfig/kdump
 fi
 # if /var/log/dump is empty, make it a symlink to /var/crash
-if test -d /var/log/dump && rmdir /var/log/dump &>/dev/null ||
+if test -d /var/log/dump && rmdir /var/log/dump >/dev/null 2>&1 ||
 ! test -d /var/log/dump ; then
 ln -snf /var/crash /var/log/dump
 fi
@@ -206,7 +206,7 @@
 # force regeneration of kdumprd
 touch /etc/sysconfig/kdump
 # delete symbolic link
-rm /var/log/dump &>/dev/null || true
+rm /var/log/dump >/dev/null 2>&1 || true
 %restart_on_update boot.kdump
 %insserv_cleanup
 %if 0%{?suse_version} > 1220

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



commit kdump for openSUSE:Factory

2014-09-28 Thread h_root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2014-09-28 19:55:33

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2014-09-24 
13:09:51.0 +0200
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2014-09-28 
19:55:39.0 +0200
@@ -1,0 +2,19 @@
+Fri Sep 26 14:13:54 UTC 2014 - [email protected]
+
+- kdump-enable-fadump-ppc64le.patch: Enable FADUMP on ppc64le
+  (bsc#889192).
+- kdump-fadump-bootloader-always.patch: Always turn on fadump if
+  KDUMP_FADUMP is true (bsc#889192).
+- kdump-bootloader-grub2.patch: kdump-Bootloader: add support for
+  GRUB2 (bsc#889192).
+- kdump-fadump-keep-sysroot.patch: Keep /sysroot mount point if
+  fadump is on (bsc#889192).
+- kdump-get-multipath-wwid-from-sysfs.patch: Refresh.
+
+---
+Fri Sep 26 10:05:56 UTC 2014 - [email protected]
+
+- kdump-add-IPv6-KDUMP_NETCONFIG-modes.patch: Refresh: Fix ip
+  error messages when KDUMP_NETCONFIG=auto (bnc#885897).
+
+---

New:

  kdump-bootloader-grub2.patch
  kdump-enable-fadump-ppc64le.patch
  kdump-fadump-bootloader-always.patch
  kdump-fadump-keep-sysroot.patch



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.d5N5EY/_old  2014-09-28 19:55:40.0 +0200
+++ /var/tmp/diff_new_pack.d5N5EY/_new  2014-09-28 19:55:40.0 +0200
@@ -76,6 +76,10 @@
 Patch9: %{name}-split-kdump_default_netdev.patch
 Patch10:%{name}-move-network-setup-to-module-setup.patch
 Patch11:%{name}-add-IPv6-KDUMP_NETCONFIG-modes.patch
+Patch12:%{name}-enable-fadump-ppc64le.patch
+Patch13:%{name}-fadump-bootloader-always.patch
+Patch14:%{name}-bootloader-grub2.patch
+Patch15:%{name}-fadump-keep-sysroot.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # rename "kdump-helpers" (10.3) -> "kdump" (11.0/SP2)
 Provides:   kdump-helpers = %{version}
@@ -125,6 +129,10 @@
 %patch9 -p1
 %patch10 -p1
 %patch11 -p1
+%patch12 -p1
+%patch13 -p1
+%patch14 -p1
+%patch15 -p1
 
 %build
 export CFLAGS="%optflags"

++ kdump-add-IPv6-KDUMP_NETCONFIG-modes.patch ++
--- /var/tmp/diff_new_pack.d5N5EY/_old  2014-09-28 19:55:40.0 +0200
+++ /var/tmp/diff_new_pack.d5N5EY/_new  2014-09-28 19:55:40.0 +0200
@@ -3,7 +3,7 @@
 Subject: Add KDUMP_NETCONFIG modes to support IPv6
 References: bnc#885897
 Patch-mainline: v0.8.16
-Git-commit: 72be4138d5ac03af8c5579099c6a39ab7d272503
+Git-commit: ffd6542ed47a41be1f1d9f8df95781b6d94123d4
 
 KDUMP_NETCONFIG had only two modes: static and dhcp, where dhcp
 actually only means DHCP4. New modes are needed to get an IPv6
@@ -98,9 +98,9 @@
 +printf " %s" $(kdump_ifname_config "$_if")
 +
 +if [ "$_mode" = "auto" ] ; then
-+  if [ -n $(kdump_ip_config) ] ; then
++  if [ -n $(kdump_ip_config "$_if") ] ; then
 +  _mode=dhcp4
-+  elif [ -n $(kdump_ip6_config) ] ; then
++  elif [ -n $(kdump_ip6_config "$_if") ] ; then
 +  _mode=dhcp6
else
 -  echo -n " ip=${_if}:dhcp"

++ kdump-bootloader-grub2.patch ++
Date: Fri Sep 26 11:43:33 2014 +0200
From: Petr Tesarik 
Subject: kdump-Bootloader: add support for GRUB2
References: bsc#889192
Patch-mainline: v0.8.16
Git-commit: 30d4271c72251c5f1c995d0580b19aa000ade1d6

GRUB2 is very different from the other bootloader, because the final
configuration file is generated by an external utility. This means
that the command line must be modified in the global settings instead
of the individual section.

Signed-off-by: Petr Tesarik 

---
 init/kdump-bootloader.pl |   22 +-
 1 file changed, 17 insertions(+), 5 deletions(-)

--- a/init/kdump-bootloader.pl
+++ b/init/kdump-bootloader.pl
@@ -4,11 +4,19 @@ use Bootloader::Tools;
 
 Bootloader::Tools::InitLibrary();
 
+my $grub2;
+my $section;
+if (Bootloader::Tools::GetBootloader() =~ /^(grub2|grub2-efi)$/) {
+$grub2 = true;
+$section = Bootloader::Tools::GetGlobals();
+} else {
+$grub2 = false;
+$section = Bootloader::Tools::GetDefaultSection();
+}
+
 if ($ARGV[0] eq "--get") {
-my $section = Bootloader::Tools::GetDefaultSection ();
 print $section->{"append"};
 } elsif ($ARGV[0] eq "--update") {
-my $section = Bootloader::Tools::GetDefaultSection ();
 my $input = $section->{"append"};
 my $result;
 while (length($input)) {
@@ -28,9 +36,13 @@ if ($ARGV[0] eq "--get") {
 shift @ARGV;
 $result .= " " if length($result);
 $result .= join(" ", @ARGV);
-

commit kdump for openSUSE:Factory

2014-09-24 Thread h_root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2014-09-24 13:09:20

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2014-09-20 
07:26:45.0 +0200
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2014-09-24 
13:09:51.0 +0200
@@ -1,0 +2,16 @@
+Tue Sep 23 14:17:01 UTC 2014 - [email protected]
+
+- kdump-split-kdump_default_netdev.patch: Cleanup: Split
+  kdump_default_netdev (bnc#885897).
+- kdump-move-network-setup-to-module-setup.patch: Move dracut
+  network command line to module-setup.sh (bnc#885897).
+- kdump-add-IPv6-KDUMP_NETCONFIG-modes.patch: Add KDUMP_NETCONFIG
+  modes to support IPv6 (bnc#885897).
+
+--
+Mon Sep 22 15:32:22 UTC 2014 - [email protected]
+
+- kdump-get-multipath-wwid-from-sysfs.patch: Get required multipath
+  wwids from sysfs (bnc#883883).
+
+---

New:

  kdump-add-IPv6-KDUMP_NETCONFIG-modes.patch
  kdump-get-multipath-wwid-from-sysfs.patch
  kdump-move-network-setup-to-module-setup.patch
  kdump-split-kdump_default_netdev.patch



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.YQ2tMB/_old  2014-09-24 13:09:52.0 +0200
+++ /var/tmp/diff_new_pack.YQ2tMB/_new  2014-09-24 13:09:52.0 +0200
@@ -72,6 +72,10 @@
 Patch5: %{name}-systemd-support.patch
 Patch6: %{name}-calibrate-systemd-runtime.patch
 Patch7: %{name}-calibrate-systemd-initramfs.patch
+Patch8: %{name}-get-multipath-wwid-from-sysfs.patch
+Patch9: %{name}-split-kdump_default_netdev.patch
+Patch10:%{name}-move-network-setup-to-module-setup.patch
+Patch11:%{name}-add-IPv6-KDUMP_NETCONFIG-modes.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # rename "kdump-helpers" (10.3) -> "kdump" (11.0/SP2)
 Provides:   kdump-helpers = %{version}
@@ -117,6 +121,10 @@
 %patch5 -p1
 %patch6 -p1
 %patch7 -p1
+%patch8 -p1
+%patch9 -p1
+%patch10 -p1
+%patch11 -p1
 
 %build
 export CFLAGS="%optflags"

++ kdump-add-IPv6-KDUMP_NETCONFIG-modes.patch ++
From: Petr Tesarik 
Date: Tue Sep 23 16:12:34 2014 +0200
Subject: Add KDUMP_NETCONFIG modes to support IPv6
References: bnc#885897
Patch-mainline: v0.8.16
Git-commit: 72be4138d5ac03af8c5579099c6a39ab7d272503

KDUMP_NETCONFIG had only two modes: static and dhcp, where dhcp
actually only means DHCP4. New modes are needed to get an IPv6
address on the interface.

Note that automatic configuration (KDUMP_NETCONFIG=auto) still uses
only IPv4, because dracut does not implement multiple alternative
ip configurations, and there's no way to determine in advance
which stack should be used.

Signed-off-by: Petr Tesarik 

---
 doc/man/kdump.5.txt.in |   35 ++-
 init/module-setup.sh   |   42 ++
 init/setup-kdump.functions |   39 ++-
 sysconfig.kdump.in |4 ++--
 4 files changed, 104 insertions(+), 16 deletions(-)

--- a/doc/man/kdump.5.txt.in
+++ b/doc/man/kdump.5.txt.in
@@ -513,13 +513,38 @@ KDUMP_NETCONFIG
 
 Network configuration for kdump. Because the dump process runs in initrd, the
 network configuration is different from the normal network configuration. Use
-_auto_ to auto-detect the network configuration, this is also the default.
+_auto_ to auto-detect the network configuration (see *auto* mode below). The
+interface with the default route will be used. This is the default.
+
+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
+option.
 
 Use a _netdevice:mode_ string to force a specific network device to be used. A
-_netdevice_ is for example "eth0". The _mode_ can be either "dhcp" or "static".
-If you use "static", you have to set the IP address with _ip=ipspec_. _ipspec_
-is ::. See
-*mkinitrd*(8) for details.
+_netdevice_ is for example "eth0". The _mode_ can be:
+
+*static*::
+  Always re-use the current configuration of _netdevice_ (both IPv4 and IPv6).
+  Note that only permanent global IPv6 addresses are stored, because temporary
+  addresses are likely to expire before the system crashes, and link-local
+  addresses are set up automatically.
+
+*auto6*::
+  Use IPv6 autoconfiguration to get an address on the interface.
+
+*dhcp*::
+*dhcp4*::
+  Use DHCP to configure an IPv4 address on the interface.
+
+*dhcp6*::
+  Use DHCP6 to configure an IPv6 address on the interface

commit kdump for openSUSE:Factory

2014-09-19 Thread h_root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2014-09-20 07:26:43

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2014-09-10 
17:01:20.0 +0200
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2014-09-20 
07:26:45.0 +0200
@@ -1,0 +2,11 @@
+Thu Sep 18 15:33:21 UTC 2014 - [email protected]
+
+- kdump-remove-root-and-resume.patch: Remove root= and resume= from
+  the kdump kernel command line (bnc#883883).
+- kdump-systemd-support.patch: Dracut-systemd support (bnc#883883).
+- kdump-calibrate-systemd-runtime.patch: Calibrate: update
+  user-space run-time requirements for systemd (bnc#883883).
+- kdump-calibrate-systemd-initramfs.patch: Calibrate: update the
+  initramfs size (bnc#883883).
+
+---

New:

  kdump-calibrate-systemd-initramfs.patch
  kdump-calibrate-systemd-runtime.patch
  kdump-remove-root-and-resume.patch
  kdump-systemd-support.patch



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.87eg2f/_old  2014-09-20 07:26:46.0 +0200
+++ /var/tmp/diff_new_pack.87eg2f/_new  2014-09-20 07:26:46.0 +0200
@@ -68,6 +68,10 @@
 Patch1: %{name}-use-fstab-device.patch
 Patch2: %{name}-count-framebuffer.patch
 Patch3: %{name}-count-const-slabs.patch
+Patch4: %{name}-remove-root-and-resume.patch
+Patch5: %{name}-systemd-support.patch
+Patch6: %{name}-calibrate-systemd-runtime.patch
+Patch7: %{name}-calibrate-systemd-initramfs.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # rename "kdump-helpers" (10.3) -> "kdump" (11.0/SP2)
 Provides:   kdump-helpers = %{version}
@@ -109,6 +113,10 @@
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
 
 %build
 export CFLAGS="%optflags"

++ kdump-calibrate-systemd-initramfs.patch ++
From: Petr Tesarik 
Date: Thu Sep 18 17:03:46 2014 +0200
Subject: Calibrate: update the initramfs size
References: bnc#883883
Patch-mainline: v0.8.16
Git-commit: b2ab003f54da780cc1ca8ebfe47f39ddd936b34a

Yes, systemd also needs some space in the initramfs, causing approx.
20% increase. Let's account for it...

Signed-off-by: Petr Tesarik 

---
 kdumptool/calibrate.cc |   18 +-
 1 file changed, 9 insertions(+), 9 deletions(-)

--- a/kdumptool/calibrate.cc
+++ b/kdumptool/calibrate.cc
@@ -59,7 +59,7 @@
 #if defined(__x86_64__)
 # define DEF_RESERVE_KBMB(128)
 # define KERNEL_KB MB(16)
-# define INIT_KB   MB(28)
+# define INIT_KB   MB(34)
 # define INIT_NET_KB   MB(3)
 # define SIZE_STRUCT_PAGE  56
 # define KDUMP_PHYS_LOAD   0
@@ -69,7 +69,7 @@
 #elif defined(__i386__)
 # define DEF_RESERVE_KBMB(128)
 # define KERNEL_KB MB(14)
-# define INIT_KB   MB(24)
+# define INIT_KB   MB(29)
 # define INIT_NET_KB   MB(2)
 # define SIZE_STRUCT_PAGE  32
 # define KDUMP_PHYS_LOAD   0
@@ -79,7 +79,7 @@
 #elif defined(__powerpc64__)
 # define DEF_RESERVE_KBMB(256)
 # define KERNEL_KB MB(16)
-# define INIT_KB   MB(48)
+# define INIT_KB   MB(58)
 # define INIT_NET_KB   MB(4)
 # define SIZE_STRUCT_PAGE  64
 # define KDUMP_PHYS_LOAD   MB(128)
@@ -89,7 +89,7 @@
 #elif defined(__powerpc__)
 # define DEF_RESERVE_KBMB(128)
 # define KERNEL_KB MB(12)
-# define INIT_KB   MB(28)
+# define INIT_KB   MB(34)
 # define INIT_NET_KB   MB(2)
 # define SIZE_STRUCT_PAGE  32
 # define KDUMP_PHYS_LOAD   MB(128)
@@ -99,7 +99,7 @@
 #elif defined(__s390x__)
 # define DEF_RESERVE_KBMB(128)
 # define KERNEL_KB MB(13)
-# define INIT_KB   MB(28)
+# define INIT_KB   MB(34)
 # define INIT_NET_KB   MB(2)
 # define SIZE_STRUCT_PAGE  56
 # define KDUMP_PHYS_LOAD   0
@@ -111,7 +111,7 @@
 #elif defined(__s390__)
 # define DEF_RESERVE_KBMB(128)
 # define KERNEL_KB MB(12)
-# define INIT_KB   MB(24)
+# define INIT_KB   MB(29)
 # define INIT_NET_KB   MB(2)
 # define SIZE_STRUCT_PAGE  32
 # define KDUMP_PHYS_LOAD   0
@@ -123,7 +123,7 @@
 #elif defined(__ia64__)
 # define DEF_RESERVE_KBMB(512)
 # define KERNEL_KB MB(32)
-# define INIT_KB   MB(36)
+# define INIT_KB   MB(44)
 # define INIT_NET_KB   MB(4)
 # d

commit kdump for openSUSE:Factory

2014-09-10 Thread h_root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2014-09-10 17:01:18

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2014-09-08 
21:29:10.0 +0200
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2014-09-10 
17:01:20.0 +0200
@@ -1,0 +2,5 @@
+Tue Sep  9 06:08:44 UTC 2014 - [email protected]
+
+- kdump-count-const-slabs.patch: Add missing addition.
+
+---



Other differences:
--
++ kdump-count-const-slabs.patch ++
--- /var/tmp/diff_new_pack.ZMDdJa/_old  2014-09-10 17:01:22.0 +0200
+++ /var/tmp/diff_new_pack.ZMDdJa/_new  2014-09-10 17:01:22.0 +0200
@@ -4,6 +4,7 @@
 References: bnc#879460
 Patch-mainline: v0.8.16
 Git-commit: 3a7c9b3a02893ab9ac39e23cae5ead9e42716927
+Git-commit: 8c0a42e80a89100addc09d584253f1c8accde500
 
 Some slabs do not depend on available memory or system utilization.
 Their size can be taken directly from the running kernel.
@@ -15,8 +16,8 @@
 Signed-off-by: Petr Tesarik 
 
 ---
- kdumptool/calibrate.cc |  213 
+
- 1 file changed, 213 insertions(+)
+ kdumptool/calibrate.cc |  215 
+
+ 1 file changed, 215 insertions(+)
 
 --- a/kdumptool/calibrate.cc
 +++ b/kdumptool/calibrate.cc
@@ -222,7 +223,7 @@
  //{{{ Calibrate 

  
  // 
-
-@@ -498,6 +693,24 @@ void Calibrate::execute()
+@@ -498,6 +693,26 @@ void Calibrate::execute()
required += DEF_FRAMEBUFFER_KB;
}
  
@@ -236,6 +237,8 @@
 +  it->first.startsWith("ftrace_") ) {
 +  unsigned long slabsize = it->second->numSlabs() *
 +  it->second->pagesPerSlab() * pagesize / 1024;
++  required += slabsize;
++
 +  Debug::debug()->dbg("Adding %ld KiB for %s slab cache",
 +  slabsize, it->second->name().c_str());
 +  }

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



commit kdump for openSUSE:Factory

2014-09-08 Thread h_root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2014-09-08 21:28:42

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2014-09-04 
07:55:47.0 +0200
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2014-09-08 
21:29:10.0 +0200
@@ -1,0 +2,18 @@
+Mon Sep  8 15:36:29 UTC 2014 - [email protected]
+
+- kdump-count-const-slabs.patch: Take constant-size slabs into
+  account for "kdump calibrate" (bnc#879460).
+
+---
+Mon Sep  8 07:40:17 UTC 2014 - [email protected]
+
+- kdump-count-framebuffer.patch: Take framebuffer size into account
+  for "kdumptool calibrate" (bnc#879460).
+
+---
+Fri Sep  5 11:42:40 UTC 2014 - [email protected]
+
+- kdump-use-fstab-device.patch: Use device from /etc/fstab to mount
+  / and /boot (bnc#892451).
+
+---

New:

  kdump-count-const-slabs.patch
  kdump-count-framebuffer.patch
  kdump-use-fstab-device.patch



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.yxO28M/_old  2014-09-08 21:29:11.0 +0200
+++ /var/tmp/diff_new_pack.yxO28M/_new  2014-09-08 21:29:11.0 +0200
@@ -65,6 +65,9 @@
 Source2:%{name}-rpmlintrc
 Source3:kdump.service
 Patch0: 0001-multipath-Write-proper-regex-into-multipath-conf.patch
+Patch1: %{name}-use-fstab-device.patch
+Patch2: %{name}-count-framebuffer.patch
+Patch3: %{name}-count-const-slabs.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # rename "kdump-helpers" (10.3) -> "kdump" (11.0/SP2)
 Provides:   kdump-helpers = %{version}
@@ -103,6 +106,9 @@
 %prep
 %setup
 %patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
 
 %build
 export CFLAGS="%optflags"

++ kdump-count-const-slabs.patch ++
From: Petr Tesarik 
Date: Mon Sep 8 17:33:38 2014 +0200
Subject: Take constant-size slabs into account for "kdump calibrate"
References: bnc#879460
Patch-mainline: v0.8.16
Git-commit: 3a7c9b3a02893ab9ac39e23cae5ead9e42716927

Some slabs do not depend on available memory or system utilization.
Their size can be taken directly from the running kernel.

Note that the size of the ACPI slab cache may vary widely across
machines (e.g. mine has only a few hundred kilobytes, while another
one I saw had over 10 megabytes).

Signed-off-by: Petr Tesarik 

---
 kdumptool/calibrate.cc |  213 +
 1 file changed, 213 insertions(+)

--- a/kdumptool/calibrate.cc
+++ b/kdumptool/calibrate.cc
@@ -448,6 +448,201 @@ unsigned long Framebuffers::size(void) c
 }
 
 //}}}
+//{{{ SlabInfo 
-
+
+class SlabInfo {
+
+public:
+/**
+* Initialize a new SlabInfo object.
+*
+* @param[in] line Line from /proc/slabinfo
+*/
+   SlabInfo(const KString &line);
+
+protected:
+   bool m_comment;
+   KString m_name;
+   unsigned long m_active_objs;
+   unsigned long m_num_objs;
+   unsigned long m_obj_size;
+   unsigned long m_obj_per_slab;
+   unsigned long m_pages_per_slab;
+   unsigned long m_active_slabs;
+   unsigned long m_num_slabs;
+
+public:
+   bool isComment(void) const
+   throw ()
+   { return m_comment; }
+
+   const KString &name(void) const
+   throw ()
+   { return m_name; }
+
+   unsigned long activeObjs(void) const
+   throw ()
+   { return m_active_objs; }
+
+   unsigned long numObjs(void) const
+   throw ()
+   { return m_num_objs; }
+
+   unsigned long objSize(void) const
+   throw ()
+   { return m_obj_size; }
+
+   unsigned long objPerSlab(void) const
+   throw ()
+   { return m_obj_per_slab; }
+
+   unsigned long pagesPerSlab(void) const
+   throw ()
+   { return m_pages_per_slab; }
+
+   unsigned long activeSlabs(void) const
+   throw ()
+   { return m_active_slabs; }
+
+   unsigned long numSlabs(void) const
+   throw ()
+   { return m_num_slabs; }
+};
+
+// 
-
+SlabInfo::SlabInfo(const KString &line)
+{
+static const char slabdata_mark[] = " : slabdata ";
+
+std::istringstream ss(line);
+ss >> m_name;
+if (!ss)
+   throw KError("Invalid slabinfo line: " + line);
+
+if (m_name[0] == '#') {
+   m_comment = true;
+   return;
+}

commit kdump for openSUSE:Factory

2014-09-03 Thread h_root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2014-09-04 07:55:44

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2014-08-20 
17:51:52.0 +0200
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2014-09-04 
07:55:47.0 +0200
@@ -1,0 +2,7 @@
+Mon Sep  1 14:21:38 UTC 2014 - [email protected]
+
+- Write proper regex into multipath.conf to prevent syntax error there
+  (bnc#883883)
+  Add: 0001-multipath-Write-proper-regex-into-multipath-conf.patch
+
+---

New:

  0001-multipath-Write-proper-regex-into-multipath-conf.patch



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.9LSvXr/_old  2014-09-04 07:55:48.0 +0200
+++ /var/tmp/diff_new_pack.9LSvXr/_new  2014-09-04 07:55:48.0 +0200
@@ -64,6 +64,7 @@
 Source: %{name}-%{version}.tar.bz2
 Source2:%{name}-rpmlintrc
 Source3:kdump.service
+Patch0: 0001-multipath-Write-proper-regex-into-multipath-conf.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # rename "kdump-helpers" (10.3) -> "kdump" (11.0/SP2)
 Provides:   kdump-helpers = %{version}
@@ -101,6 +102,7 @@
 
 %prep
 %setup
+%patch0 -p1
 
 %build
 export CFLAGS="%optflags"

++ 0001-multipath-Write-proper-regex-into-multipath-conf.patch ++
>From 4ce21a05fdfa91cb894d140c1962b29fb4b1431a Mon Sep 17 00:00:00 2001
From: Julian Wolf 
Date: Mon, 1 Sep 2014 15:46:21 +0200
Subject: multipath: Write proper regex into multipath.conf

Signed-off-by: Julian Wolf 
---
 kdumptool/multipath.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kdumptool/multipath.cc b/kdumptool/multipath.cc
index 4ffe493..a9acafc 100644
--- a/kdumptool/multipath.cc
+++ b/kdumptool/multipath.cc
@@ -206,7 +206,7 @@ void AddBlacklistHandler::outputLine(const string &raw)
 // 
-
 void AddBlacklistHandler::doBlacklist(lineHandler handler)
 {
-(this->*handler)("\twwid \"*\"\n");
+(this->*handler)("\twwid \".*\"\n");
 m_blacklist_done = true;
 }
 
-- 
1.8.1.4

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



commit kdump for openSUSE:Factory

2014-08-20 Thread h_root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2014-08-20 17:51:38

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2014-07-13 
17:16:32.0 +0200
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2014-08-20 
17:51:52.0 +0200
@@ -1,0 +2,7 @@
+Mon Aug 18 10:18:48 UTC 2014 - [email protected]
+
+- specfile: Remove call to mkinitrd_setup. With dracut, this is
+  completely useless; with mkinitrd, the setup script is run
+  automatically after a new mkinitrd script is installed.
+
+---



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.5GPzga/_old  2014-08-20 17:51:56.0 +0200
+++ /var/tmp/diff_new_pack.5GPzga/_new  2014-08-20 17:51:56.0 +0200
@@ -154,7 +154,6 @@
 if (( $change_permission )) ; then
 chmod 0600 /etc/sysconfig/kdump
 fi
-/sbin/mkinitrd_setup
 # if /var/log/dump is empty, make it a symlink to /var/crash
 if test -d /var/log/dump && rmdir /var/log/dump &>/dev/null ||
 ! test -d /var/log/dump ; then
@@ -174,7 +173,6 @@
 %postun
 # force regeneration of kdumprd
 touch /etc/sysconfig/kdump
-/sbin/mkinitrd_setup
 # delete symbolic link
 rm /var/log/dump &>/dev/null || true
 %restart_on_update boot.kdump

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



commit kdump for openSUSE:Factory

2014-07-13 Thread h_root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2014-07-13 17:16:28

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2014-06-19 
13:08:32.0 +0200
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2014-07-13 
17:16:32.0 +0200
@@ -1,0 +2,17 @@
+Fri Jul  4 11:48:20 UTC 2014 - [email protected]
+
+- Switch from mkinitrd to dracut for SLES12 and openSUSE > 13.1.
+
+---
+Fri Jul  4 11:25:25 UTC 2014 - [email protected]
+
+- Update to 0.8.15 
+  o Disable memory cgroup in kdump kernel
+  o Limit the number of CPUs on all architectures
+  o Increase udevd memory requirements
+  o If possible, use wicked to determine network mode
+  o Take number of possible CPUs into account for calibrate
+
+- kdump-disable-memory-cgroup.patch: Dropped.
+
+---

Old:

  kdump-0.8.14.tar.bz2
  kdump-disable-memory-cgroup.patch

New:

  kdump-0.8.15.tar.bz2



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.bkPLYW/_old  2014-07-13 17:16:33.0 +0200
+++ /var/tmp/diff_new_pack.bkPLYW/_new  2014-07-13 17:16:33.0 +0200
@@ -31,7 +31,7 @@
 Url:https://github.com/ptesarik/kdump
 
 Name:   kdump
-Version:0.8.14
+Version:0.8.15
 Release:0
 Requires:   curl
 Requires:   makedumpfile
@@ -52,14 +52,18 @@
 BuildRequires:  udev
 BuildRequires:  zlib-devel
 #!BuildIgnore:  fop
-%if %suse_version > 1220
+%if 0%{?suse_version} > 1220
 BuildRequires:  systemd
 %endif
-PreReq: %insserv_prereq %fillup_prereq mkinitrd
+PreReq: %insserv_prereq %fillup_prereq
+%if 0%{?suse_version} > 1310
+PreReq: dracut
+%else
+PreReq: mkinitrd
+%endif
 Source: %{name}-%{version}.tar.bz2
 Source2:%{name}-rpmlintrc
 Source3:kdump.service
-Patch0: %{name}-disable-memory-cgroup.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # rename "kdump-helpers" (10.3) -> "kdump" (11.0/SP2)
 Provides:   kdump-helpers = %{version}
@@ -67,7 +71,7 @@
 # update should detect the split-off from kexec-tools
 Provides:   kexec-tools:/etc/init.d/kdump
 Requires:   kexec-tools
-%if %suse_version > 1220
+%if 0%{?suse_version} > 1220
 %systemd_requires
 %endif
 Recommends: nfs-client cifs-utils
@@ -97,7 +101,6 @@
 
 %prep
 %setup
-%patch0 -p1
 
 %build
 export CFLAGS="%optflags"
@@ -126,13 +129,16 @@
 ln -s /etc/init.d/boot.kdump $RPM_BUILD_ROOT/sbin/rckdump
 # empty directory
 mkdir $RPM_BUILD_ROOT/var/crash
+%if 0%{?suse_version} > 1310
+rm -r $RPM_BUILD_ROOT/lib/mkinitrd
+%endif
 
-%if %suse_version > 1220
+%if 0%{?suse_version} > 1220
 mkdir -p $RPM_BUILD_ROOT%{_unitdir}
 install -m644 %{S:3} $RPM_BUILD_ROOT%{_unitdir}
 %endif
 
-%if %suse_version > 1220
+%if 0%{?suse_version} > 1220
 %pre
 %service_add_pre kdump.service
 %endif
@@ -154,14 +160,14 @@
 ! test -d /var/log/dump ; then
 ln -snf /var/crash /var/log/dump
 fi
-%if %suse_version > 1220
+%if 0%{?suse_version} > 1220
 %service_add_post kdump.service
 %endif
 
 %preun
 echo "Stopping kdump ..."
 %stop_on_removal boot.kdump
-%if %suse_version > 1220
+%if 0%{?suse_version} > 1220
 %service_del_preun kdump.service
 %endif
 
@@ -173,7 +179,7 @@
 rm /var/log/dump &>/dev/null || true
 %restart_on_update boot.kdump
 %insserv_cleanup
-%if %suse_version > 1220
+%if 0%{?suse_version} > 1220
 %service_del_postun kdump.service
 %endif
 
@@ -193,16 +199,18 @@
 /sbin/rckdump
 %{_sysconfdir}/init.d/boot.kdump
 /var/adm/fillup-templates/sysconfig.kdump
+%if 0%{?suse_version} <= 1310
 /lib/mkinitrd/scripts/*-kdump.sh
 /lib/mkinitrd/scripts/setup-kdumpfs.sh
 /lib/mkinitrd/scripts/setup-mkdumprd.sh
+%endif
 %dir %{dracutlibdir}
 %dir %{dracutlibdir}/modules.d
 %{dracutlibdir}/modules.d/99kdump/
 %dir /lib/kdump
 /lib/kdump/*
 %{_udevrulesdir}/70-kdump.rules
-%if %suse_version > 1220
+%if 0%{?suse_version} > 1220
 %{_unitdir}/kdump.service
 %endif
 

++ kdump-0.8.14.tar.bz2 -> kdump-0.8.15.tar.bz2 ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kdump-0.8.14/CMakeLists.txt 
new/kdump-0.8.15/CMakeLists.txt
--- old/kdump-0.8.14/CMakeLists.txt 2014-06-10 14:06:49.0 +0200
+++ new/kdump-0.8.15/CMakeLists.txt 2014-06-23 17:47:39.0 +0200
@@ -26,7 +26,7 @@
 
 cmake_minimum_required(VERSION 2.6.2)
 set (PACKAGE_STRING "kdump")
-set (PACKAGE_VERSION "0.8.14")
+set (PACKAGE_VERSION "0.8.15")
 
 include_directories

commit kdump for openSUSE:Factory

2014-06-19 Thread h_root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2014-06-19 13:08:28

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2014-06-02 
07:00:39.0 +0200
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2014-06-19 
13:08:32.0 +0200
@@ -1,0 +2,16 @@
+Mon Jun 16 11:27:57 UTC 2014 - [email protected]
+
+- kdump-disable-memory-cgroup.patch: disable memory cgroup in the
+  kdump kernel (bnc#881091). 
+
+---
+Mon Jun 16 10:51:43 UTC 2014 - [email protected]
+
+- Update to 0.8.14
+  o Disable ACPI memory hotplug in kdump kernel (bnc#881091).
+  o Update kernel and initrd estimates
+  o Install mount-kdump.sh to dracut module directory (bnc#881851).
+
+- Remove version number from rpmlintrc.
+
+---

Old:

  kdump-0.8.13-rpmlintrc
  kdump-0.8.13.tar.bz2

New:

  kdump-0.8.14.tar.bz2
  kdump-disable-memory-cgroup.patch
  kdump-rpmlintrc



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.zADx7c/_old  2014-06-19 13:08:33.0 +0200
+++ /var/tmp/diff_new_pack.zADx7c/_new  2014-06-19 13:08:33.0 +0200
@@ -31,7 +31,7 @@
 Url:https://github.com/ptesarik/kdump
 
 Name:   kdump
-Version:0.8.13
+Version:0.8.14
 Release:0
 Requires:   curl
 Requires:   makedumpfile
@@ -57,8 +57,9 @@
 %endif
 PreReq: %insserv_prereq %fillup_prereq mkinitrd
 Source: %{name}-%{version}.tar.bz2
-Source2:%{name}-%{version}-rpmlintrc
+Source2:%{name}-rpmlintrc
 Source3:kdump.service
+Patch0: %{name}-disable-memory-cgroup.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # rename "kdump-helpers" (10.3) -> "kdump" (11.0/SP2)
 Provides:   kdump-helpers = %{version}
@@ -96,6 +97,7 @@
 
 %prep
 %setup
+%patch0 -p1
 
 %build
 export CFLAGS="%optflags"

++ kdump-0.8.13.tar.bz2 -> kdump-0.8.14.tar.bz2 ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kdump-0.8.13/CMakeLists.txt 
new/kdump-0.8.14/CMakeLists.txt
--- old/kdump-0.8.13/CMakeLists.txt 2014-05-30 13:24:24.0 +0200
+++ new/kdump-0.8.14/CMakeLists.txt 2014-06-10 14:06:49.0 +0200
@@ -26,7 +26,7 @@
 
 cmake_minimum_required(VERSION 2.6.2)
 set (PACKAGE_STRING "kdump")
-set (PACKAGE_VERSION "0.8.13")
+set (PACKAGE_VERSION "0.8.14")
 
 include_directories("${PROJECT_BINARY_DIR}")
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kdump-0.8.13/NEWS new/kdump-0.8.14/NEWS
--- old/kdump-0.8.13/NEWS   2014-05-30 13:24:24.0 +0200
+++ new/kdump-0.8.14/NEWS   2014-06-10 14:06:49.0 +0200
@@ -1,3 +1,9 @@
+0.8.14
+--
+  * Disable ACPI memory hotplug in kdump kernel
+  * Update kernel and initrd estimates
+  * Bugfix: install mount-kdump.sh to dracut module directory
+
 0.8.13
 --
   * Store current configuration if KDUMP_NETCONFIG is static
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kdump-0.8.13/init/CMakeLists.txt 
new/kdump-0.8.14/init/CMakeLists.txt
--- old/kdump-0.8.13/init/CMakeLists.txt2014-05-30 13:24:24.0 
+0200
+++ new/kdump-0.8.14/init/CMakeLists.txt2014-06-10 14:06:49.0 
+0200
@@ -70,6 +70,7 @@
 INSTALL(
 FILES
 ${CMAKE_CURRENT_SOURCE_DIR}/module-setup.sh
+${CMAKE_CURRENT_SOURCE_DIR}/mount-kdump.sh
 DESTINATION
 /usr/lib/dracut/modules.d/99kdump
 PERMISSIONS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kdump-0.8.13/init/rc.kdump.functions 
new/kdump-0.8.14/init/rc.kdump.functions
--- old/kdump-0.8.13/init/rc.kdump.functions2014-05-30 13:24:24.0 
+0200
+++ new/kdump-0.8.14/init/rc.kdump.functions2014-06-10 14:06:49.0 
+0200
@@ -99,10 +99,10 @@
 if [ -z "$commandline" ]; then
 commandline=$(
 remove_from_commandline \
-
'crashkernel|splash|mem|BOOT_IMAGE|showopts|zfcp\.allow_lun_scan|hugepages' \
+
'crashkernel|splash|mem|BOOT_IMAGE|showopts|zfcp\.allow_lun_scan|hugepages|acpi_no_memhotplug'
 \
 < /proc/cmdline)
 # Use deadline for saving the memory footprint
-commandline="$commandline elevator=deadline sysrq=yes reset_devices"
+commandline="$commandline elevator=deadline sysrq=yes reset_devices 
acpi_no_memhotplug"
 local arch=$(uname 

commit kdump for openSUSE:Factory

2014-06-01 Thread h_root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2014-06-02 07:00:23

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2014-05-23 
08:05:25.0 +0200
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2014-06-02 
07:00:39.0 +0200
@@ -1,0 +2,13 @@
+Fri May 30 11:31:44 UTC 2014 - [email protected]
+
+- Update to 0.8.13
+  o Store current configuration if KDUMP_NETCONFIG is static
+(bnc#876212).
+  o Modify kdump udev rules to work with systemd
+(bnc#874992, bnc#809209).
+  o Support percent-encoded URLs for KDUMP_SAVEDIR (bnc#869590).
+
+- kdump-fix-udev-rules.patch: Dropped.
+- kdump-urldecode.patch: Dropped.
+
+---

Old:

  kdump-0.8.12-rpmlintrc
  kdump-0.8.12.tar.bz2
  kdump-fix-udev-rules.patch
  kdump-urldecode.patch

New:

  kdump-0.8.13-rpmlintrc
  kdump-0.8.13.tar.bz2



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.XA4XLr/_old  2014-06-02 07:00:40.0 +0200
+++ /var/tmp/diff_new_pack.XA4XLr/_new  2014-06-02 07:00:40.0 +0200
@@ -31,7 +31,7 @@
 Url:https://github.com/ptesarik/kdump
 
 Name:   kdump
-Version:0.8.12
+Version:0.8.13
 Release:0
 Requires:   curl
 Requires:   makedumpfile
@@ -59,8 +59,6 @@
 Source: %{name}-%{version}.tar.bz2
 Source2:%{name}-%{version}-rpmlintrc
 Source3:kdump.service
-Patch1: %{name}-fix-udev-rules.patch
-Patch2: %{name}-urldecode.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # rename "kdump-helpers" (10.3) -> "kdump" (11.0/SP2)
 Provides:   kdump-helpers = %{version}
@@ -98,9 +96,6 @@
 
 %prep
 %setup
-%patch1 -p1
-%patch2 -p1
-chmod +x tests/testurldecode.sh
 
 %build
 export CFLAGS="%optflags"

++ kdump-0.8.12-rpmlintrc -> kdump-0.8.13-rpmlintrc ++

++ kdump-0.8.12.tar.bz2 -> kdump-0.8.13.tar.bz2 ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kdump-0.8.12/70-kdump.rules 
new/kdump-0.8.13/70-kdump.rules
--- old/kdump-0.8.12/70-kdump.rules 2014-05-16 19:31:02.0 +0200
+++ new/kdump-0.8.13/70-kdump.rules 1970-01-01 01:00:00.0 +0100
@@ -1,12 +0,0 @@
-#
-# Kdump core headers needs to be regnerated if the CPUs or memory changes.
-# For this, reload kdump.
-#
-# Novell Bug #389658
-#
-
-SUBSYSTEM=="cpu", ACTION=="online", PROGRAM="/etc/init.d/boot.kdump 
try-restart"
-SUBSYSTEM=="cpu", ACTION=="offline", PROGRAM="/etc/init.d/boot.kdump 
try-restart"
-SUBSYSTEM=="memory", ACTION=="add", PROGRAM="/etc/init.d/boot.kdump 
try-restart"
-SUBSYSTEM=="memory", ACTION=="remove", PROGRAM="/etc/init.d/boot.kdump 
try-restart"
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kdump-0.8.12/70-kdump.rules.in 
new/kdump-0.8.13/70-kdump.rules.in
--- old/kdump-0.8.12/70-kdump.rules.in  1970-01-01 01:00:00.0 +0100
+++ new/kdump-0.8.13/70-kdump.rules.in  2014-05-30 13:24:24.0 +0200
@@ -0,0 +1,37 @@
+@if @ARCH@ s390 s390x
+#
+# For s390x the ELF header is created in the kdump kernel and therefore
+# no kdump udev rules are required.
+#
+@else
+#
+# Kdump core headers needs to be regnerated if the CPUs or memory changes.
+# For this, reload kdump.
+#
+# Novell Bug #389658
+#
+
+TEST=="/usr/bin/systemctl", GOTO="kdump_systemd"
+
+@if @ARCH@ ppc ppc64 ppc64le
+SUBSYSTEM=="cpu", ACTION=="online", RUN+="/etc/init.d/boot.kdump try-restart"
+SUBSYSTEM=="cpu", ACTION=="offline", RUN+="/etc/init.d/boot.kdump try-restart"
+@endif
+SUBSYSTEM=="memory", ACTION=="add", RUN+="/etc/init.d/boot.kdump try-restart"
+SUBSYSTEM=="memory", ACTION=="remove", RUN+="/etc/init.d/boot.kdump 
try-restart"
+
+GOTO="kdump_end"
+
+# Systemd limits service start rate, so if udev events are emitted too
+# often, kdump will enter failed state, unless the counter is reset here.
+LABEL="kdump_systemd"
+
+@if @ARCH@ ppc ppc64 ppc64le
+SUBSYSTEM=="cpu", ACTION=="online", RUN+="/usr/bin/systemctl reset-failed 
kdump", RUN+="/usr/bin/systemctl try-restart kdump"
+SUBSYSTEM=="cpu", ACTION=="offline", RUN+="/usr/bin/systemctl reset-failed 
kdump", RUN+="/usr/bin/systemctl try-restart kdump"
+@endif
+SUBSYSTEM=="memory", ACTION=="add", RUN+="/usr/bin/systemctl reset-failed 
kdump", RUN+="/usr/bin/systemctl try-restart kdump"
+SUBSYSTEM=="memory", ACTION=="remove", RUN+="/usr/bin/systemctl reset-failed 
kdump", RUN+="/usr/bin/systemctl try-restart kdump"
+
+LABEL="kdump_end"
+@endif
diff -urN '--exclude=CVS' '--exc

commit kdump for openSUSE:Factory

2014-05-22 Thread h_root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2014-05-23 08:05:19

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2014-05-18 
06:50:16.0 +0200
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2014-05-23 
08:05:25.0 +0200
@@ -1,0 +2,12 @@
+Tue May 20 11:15:40 UTC 2014 - [email protected]
+
+- kdump-urldecode.patch: Perform percent decoding on target URL
+  (bnc#869590).
+
+---
+Mon May 19 14:18:27 UTC 2014 - [email protected]
+
+- kdump-fix-udev-rules.patch: Avoid entering failed state on CPU
+  hotplug (bnc#874992, bnc#809209).
+
+---

New:

  kdump-fix-udev-rules.patch
  kdump-urldecode.patch



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.Eq1QIm/_old  2014-05-23 08:05:26.0 +0200
+++ /var/tmp/diff_new_pack.Eq1QIm/_new  2014-05-23 08:05:26.0 +0200
@@ -59,6 +59,8 @@
 Source: %{name}-%{version}.tar.bz2
 Source2:%{name}-%{version}-rpmlintrc
 Source3:kdump.service
+Patch1: %{name}-fix-udev-rules.patch
+Patch2: %{name}-urldecode.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # rename "kdump-helpers" (10.3) -> "kdump" (11.0/SP2)
 Provides:   kdump-helpers = %{version}
@@ -96,6 +98,9 @@
 
 %prep
 %setup
+%patch1 -p1
+%patch2 -p1
+chmod +x tests/testurldecode.sh
 
 %build
 export CFLAGS="%optflags"

++ kdump-fix-udev-rules.patch ++
From: Petr Tesarik 
Subject: Avoid entering failed state on CPU hotplug
References: bnc#874992, bnc#809209
Patch-mainline: scheduled for v0.8.13

When more than 5 CPUs are quickly offlined or onlined, the kdump
service enters and remains in a "failed state".

This issue appears to be caused by systemd's service start rate
limit default [more than 5 times within 10 seconds per
systemd.service(5) man page] being exceeded due to the udev
initiated kdump service restart for every CPU offline or online
operation.

Avoid the problem by preventing the systemd rate limit threshold
encounter by flushing the reset rate counter prior to each CPU
offline and online related kdump service restart.

Additionally, limit the restart to IBM POWER, because other
systems do not appear to be affected by bnc 389658.

And the z/Architecture do not need a restart on memory hotplug
either, so the udev rules are not needed at all.

Signed-off-by: Petr Tesarik 
diff --git a/70-kdump.rules b/70-kdump.rules
deleted file mode 100644
index c215f23..000
--- a/70-kdump.rules
+++ /dev/null
@@ -1,12 +0,0 @@
-#
-# Kdump core headers needs to be regnerated if the CPUs or memory changes.
-# For this, reload kdump.
-#
-# Novell Bug #389658
-#
-
-SUBSYSTEM=="cpu", ACTION=="online", PROGRAM="/etc/init.d/boot.kdump 
try-restart"
-SUBSYSTEM=="cpu", ACTION=="offline", PROGRAM="/etc/init.d/boot.kdump 
try-restart"
-SUBSYSTEM=="memory", ACTION=="add", PROGRAM="/etc/init.d/boot.kdump 
try-restart"
-SUBSYSTEM=="memory", ACTION=="remove", PROGRAM="/etc/init.d/boot.kdump 
try-restart"
-
diff --git a/70-kdump.rules.in b/70-kdump.rules.in
new file mode 100644
index 000..0ec2127
--- /dev/null
+++ b/70-kdump.rules.in
@@ -0,0 +1,37 @@
+@if @ARCH@ s390 s390x
+#
+# For s390x the ELF header is created in the kdump kernel and therefore
+# no kdump udev rules are required.
+#
+@else
+#
+# Kdump core headers needs to be regnerated if the CPUs or memory changes.
+# For this, reload kdump.
+#
+# Novell Bug #389658
+#
+
+TEST=="/usr/bin/systemctl", GOTO="kdump_systemd"
+
+@if @ARCH@ ppc ppc64 ppc64le
+SUBSYSTEM=="cpu", ACTION=="online", RUN+="/etc/init.d/boot.kdump try-restart"
+SUBSYSTEM=="cpu", ACTION=="offline", RUN+="/etc/init.d/boot.kdump try-restart"
+@endif
+SUBSYSTEM=="memory", ACTION=="add", RUN+="/etc/init.d/boot.kdump try-restart"
+SUBSYSTEM=="memory", ACTION=="remove", RUN+="/etc/init.d/boot.kdump 
try-restart"
+
+GOTO="kdump_end"
+
+# Systemd limits service start rate, so if udev events are emitted too
+# often, kdump will enter failed state, unless the counter is reset here.
+LABEL="kdump_systemd"
+
+@if @ARCH@ ppc ppc64 ppc64le
+SUBSYSTEM=="cpu", ACTION=="online", RUN+="/usr/bin/systemctl reset-failed 
kdump", RUN+="/usr/bin/systemctl try-restart kdump"
+SUBSYSTEM=="cpu", ACTION=="offline", RUN+="/usr/bin/systemctl reset-failed 
kdump", RUN+="/usr/bin/systemctl try-restart kdump"
+@endif
+SUBSYSTEM=="memory", ACTION=="add", RUN+="/usr/bin/systemctl reset-failed 
kdump", RUN+="/usr/bin/systemctl try-restart kdump"
+SUBSYSTEM=="memory", 

commit kdump for openSUSE:Factory

2014-05-17 Thread h_root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2014-05-18 06:50:07

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2014-05-06 
13:59:10.0 +0200
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2014-05-18 
06:50:16.0 +0200
@@ -1,0 +2,12 @@
+Fri May 16 17:42:37 UTC 2014 - [email protected]
+
+- Update to 0.8.12
+  o Add "ssh" target protocol to transfer the file over the
+standard input to a remote host using the standard ssh client
+(bnc#868704).
+  o Prevent double mount of the root file system (bnc#875738).
+  o Allow taking remote dumps without mounting any file systems
+
+- specfile: update URL
+
+---

Old:

  kdump-0.8.11-rpmlintrc
  kdump-0.8.11.tar.bz2

New:

  kdump-0.8.12-rpmlintrc
  kdump-0.8.12.tar.bz2



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.Ii7AbS/_old  2014-05-18 06:50:17.0 +0200
+++ /var/tmp/diff_new_pack.Ii7AbS/_new  2014-05-18 06:50:17.0 +0200
@@ -28,10 +28,10 @@
 %endif
 %define _udevrulesdir %{_udevdir}/rules.d
 
-Url:http://freehg.org/u/bwalle/kdump/
+Url:https://github.com/ptesarik/kdump
 
 Name:   kdump
-Version:0.8.11
+Version:0.8.12
 Release:0
 Requires:   curl
 Requires:   makedumpfile

++ kdump-0.8.11-rpmlintrc -> kdump-0.8.12-rpmlintrc ++

++ kdump-0.8.11.tar.bz2 -> kdump-0.8.12.tar.bz2 ++
 1979 lines of diff (skipped)

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



commit kdump for openSUSE:Factory

2014-05-06 Thread h_root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2014-05-06 13:59:09

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2014-04-22 
16:59:51.0 +0200
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2014-05-06 
13:59:10.0 +0200
@@ -1,0 +2,10 @@
+Mon May  5 11:40:52 UTC 2014 - [email protected]
+
+- Update to 0.8.11
+  o Use fast xz compression with dracut (bnc#870549)
+  o Mount boot/root partition only if needed
+  o Copy required programs to the initrd (bnc#874571).
+
+- kdump-0.8.10-dracut-xz-opt.patch: Dropped.
+
+---

Old:

  kdump-0.8.10-dracut-xz-opt.patch
  kdump-0.8.10-rpmlintrc
  kdump-0.8.10.tar.bz2

New:

  kdump-0.8.11-rpmlintrc
  kdump-0.8.11.tar.bz2



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.bAOUfr/_old  2014-05-06 13:59:11.0 +0200
+++ /var/tmp/diff_new_pack.bAOUfr/_new  2014-05-06 13:59:11.0 +0200
@@ -31,7 +31,7 @@
 Url:http://freehg.org/u/bwalle/kdump/
 
 Name:   kdump
-Version:0.8.10
+Version:0.8.11
 Release:0
 Requires:   curl
 Requires:   makedumpfile
@@ -59,7 +59,6 @@
 Source: %{name}-%{version}.tar.bz2
 Source2:%{name}-%{version}-rpmlintrc
 Source3:kdump.service
-Patch1: %{name}-%{version}-dracut-xz-opt.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # rename "kdump-helpers" (10.3) -> "kdump" (11.0/SP2)
 Provides:   kdump-helpers = %{version}
@@ -97,7 +96,6 @@
 
 %prep
 %setup
-%patch1 -p1
 
 %build
 export CFLAGS="%optflags"

++ kdump-0.8.10-rpmlintrc -> kdump-0.8.11-rpmlintrc ++

++ kdump-0.8.10.tar.bz2 -> kdump-0.8.11.tar.bz2 ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kdump-0.8.10/.hg_archival.txt 
new/kdump-0.8.11/.hg_archival.txt
--- old/kdump-0.8.10/.hg_archival.txt   2014-03-27 16:50:27.0 +0100
+++ new/kdump-0.8.11/.hg_archival.txt   1970-01-01 01:00:00.0 +0100
@@ -1,5 +0,0 @@
-repo: bc186d1ee81e4dfdc5721d6a5743a6ed8b3cc457
-node: cdc64f0f5ccaf1cb29344e7b6b02ab090f75d078
-branch: default
-latesttag: v0.8.9
-latesttagdistance: 29
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kdump-0.8.10/.hgignore new/kdump-0.8.11/.hgignore
--- old/kdump-0.8.10/.hgignore  2014-03-27 16:50:27.0 +0100
+++ new/kdump-0.8.11/.hgignore  1970-01-01 01:00:00.0 +0100
@@ -1,48 +0,0 @@
-# editor-generatd files
-syntax: glob
-*.swp
-*~
-
-# the build system
-syntax: glob
-CMakeCache.txt
-CMakeFiles/
-cmake_install.cmake
-Makefile
-config.h
-DartConfiguration.tcl
-
-CPackConfig.cmake
-CPackSourceConfig.cmake
-_CPack_Packages/
-
-CTestTestfile.cmake
-Testing/
-
-# resulting binaries
-syntax: regexp
-^kdumptool/kdumptool
-^kdumptool/testcanonical
-^kdumptool/testconfig
-^kdumptool/testio
-^kdumptool/testkconfig
-^kdumptool/testmail
-^kdumptool/testreadlink
-^kdumptool/testurlparser
-^kdumptool/testlistdir
-
-# generated documentation
-syntax: glob
-man/*.txt
-man/*.[1-8].gz
-
-syntax: regexp
-^doc/implementation/Implementation_Guide.html
-
-# release packages
-syntax: regexp
-^kdump-[0-9.]*\.tar\.bz2$
-
-# other
-build/
-tests/data/tmp/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kdump-0.8.10/.hgtags new/kdump-0.8.11/.hgtags
--- old/kdump-0.8.10/.hgtags2014-03-27 16:50:27.0 +0100
+++ new/kdump-0.8.11/.hgtags1970-01-01 01:00:00.0 +0100
@@ -1,27 +0,0 @@
-4e2c1718fdf68ee5d5e2e4bffe1650db813cf245 v0.5.0
-d4b4b8805f1be520fcf392aa7560e6a7fd9b0382 v0.5.1
-e9990ad7a4f9c0dddfc5e9a7173ebd0ed0250ea6 v0.5.2
-43157d26c474cd0253e8f7fdbbe655d2199deffb v0.5.3
-28fbf19fec3fc1a668d85b91a057ad4b79be1726 v0.5.4
-d1aabeaa0fdfbcc294fbfbc4a9f4c8fd130f5660 v0.5.5
-893baa67fe94da4ff43ee86efe466534b57ca644 v0.6.0
-3b2c51c3c8379bcdaadaf6dc19939050388173b2 v0.6.1
-36463ceccc2e839a4679fa2b8a85bf64bf094304 v0.6.4
-f55d64c64ea6994fe328dc6a79479050c1a7d216 v0.6.5
-1e61bab2f023b1bda7b89d8c44d9a9797548ef09 v0.6.6
-3a3623a48886cb178707a8412c4daaed5a2fb61e v0.6.7
-2c5f915eb87119727c36851336fcf7bbb9bcd79d v0.7.0
-9e3352acdbf95d2eb8330e89c1fab7eb5e95dd41 v0.7.1
-1827a55a9c250040f3371a856e01637514105f53 v0.7.2
-325916887ce56dd5a034dd5f5e40da18007a3133 v0.7.3
-da179225bff1c55084ea0b3cbe874a23f6c335d3 v0.7.4
-4be6f66af4dc2c5dca1e5b7ddd11986debf3e849 v0.8.0
-d2e9b17943e4b167446228373dc0e3f6ee2a93eb v0.8.1
-d441f2ef4f58d9c85bbb3a79a1994bda61f369a5 v0.8.2
-136fd1ff12a

commit kdump for openSUSE:Factory

2014-04-22 Thread h_root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2014-04-22 16:59:50

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2014-03-31 
20:43:28.0 +0200
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2014-04-22 
16:59:51.0 +0200
@@ -1,0 +2,6 @@
+Tue Apr 15 06:26:08 UTC 2014 - [email protected]
+
+- kdump-0.8.10-dracut-xz-opt.patch: Use fast xz compression with
+  dracut (bnc#870549).
+
+---

New:

  kdump-0.8.10-dracut-xz-opt.patch



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.DUJcED/_old  2014-04-22 16:59:52.0 +0200
+++ /var/tmp/diff_new_pack.DUJcED/_new  2014-04-22 16:59:52.0 +0200
@@ -59,6 +59,7 @@
 Source: %{name}-%{version}.tar.bz2
 Source2:%{name}-%{version}-rpmlintrc
 Source3:kdump.service
+Patch1: %{name}-%{version}-dracut-xz-opt.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # rename "kdump-helpers" (10.3) -> "kdump" (11.0/SP2)
 Provides:   kdump-helpers = %{version}
@@ -96,6 +97,7 @@
 
 %prep
 %setup
+%patch1 -p1
 
 %build
 export CFLAGS="%optflags"

++ kdump-0.8.10-dracut-xz-opt.patch ++
From: Petr Tesarik 
Subject: Use fast xz compression with dracut
References: bnc#870549
Patch-mainline: queued for v0.8.11

Signed-off-by: Petr Tesarik 
---
 init/mkdumprd |1 +
 1 file changed, 1 insertion(+)

--- a/init/mkdumprd
+++ b/init/mkdumprd
@@ -124,6 +124,7 @@ function run_dracut()
 . /lib/kdump/setup-kdump.functions
 
 DRACUT_ARGS="--force --hostonly --omit 'systemd plymouth resume usrmount'"
+DRACUT_ARGS="$DRACUT_ARGS --compress='xz -0 --check=crc32'"
 
 # add mount points
 kdump_get_mountpoints || return 1
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



commit kdump for openSUSE:Factory

2014-03-31 Thread h_root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2014-03-31 20:43:17

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2014-03-18 
14:14:40.0 +0100
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2014-03-31 
20:43:28.0 +0200
@@ -1,0 +2,31 @@
+Fri Mar 28 13:15:08 UTC 2014 - [email protected]
+
+- specfile cleanup: remove blocks for pre-openSUSE11.0
+- fix location of the udev files (see sr 227790).
+
+---
+Thu Mar 27 15:51:34 UTC 2014 - [email protected]
+
+- Update to 0.8.10
+  o Support snappy compression algorithm (FATE#315726)
+  o Improved algorithm for "calibrate"
+  o Network support for dracut
+  o Filter out DomU pages, when dumping a Xen virtualization host
+(bnc#864910)
+  o Do not try to copy separate debuginfo files (bnc#869971)
+  o Unit test for FilePath::listDir() (SUSE Test Initiative)
+  o delete_dumps: ignore non-kdump directories (FATE#313185)
+  o fixed the testsuite on non-x86
+
+- include and run the test suite
+- kdump-ledblink-background.patch: Dropped.
+- kdump-initrd-network.patch: Dropped.
+- kdump-0.8.10-detect-xen-dumps.patch: Dropped.
+
+---
+Tue Mar 18 16:55:26 UTC 2014 - [email protected]
+
+- kdump-0.8.9-detect-xen-dumps.patch: fix uninitialized variable;
+  without the fix, '-X' is (almost) always added.
+
+---

Old:

  kdump-0.8.9-detect-xen-dumps.patch
  kdump-0.8.9-rpmlintrc
  kdump-0.8.9.tar.bz2
  kdump-initrd-network.patch
  kdump-ledblink-background.patch

New:

  kdump-0.8.10-rpmlintrc
  kdump-0.8.10.tar.bz2



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.Tjd8et/_old  2014-03-31 20:43:29.0 +0200
+++ /var/tmp/diff_new_pack.Tjd8et/_new  2014-03-31 20:43:29.0 +0200
@@ -18,10 +18,20 @@
 
 %define dracutlibdir %{_prefix}/lib/dracut
 
+%{!?_udevdir: %global _udevdir %(pkg-config --variable=udevdir udev)}
+%if "%{_udevdir}" == ""
+%if 0%{?suse_version} >= 1230
+%global _udevdir /usr/lib/udev
+%else
+%global _udevdir /lib/udev
+%endif
+%endif
+%define _udevrulesdir %{_udevdir}/rules.d
+
 Url:http://freehg.org/u/bwalle/kdump/
 
 Name:   kdump
-Version:0.8.9
+Version:0.8.10
 Release:0
 Requires:   curl
 Requires:   makedumpfile
@@ -36,12 +46,12 @@
 BuildRequires:  libelf-devel
 BuildRequires:  libesmtp-devel
 BuildRequires:  libopenssl-devel
+BuildRequires:  libssh2-devel
 BuildRequires:  libxslt
+BuildRequires:  pkg-config
+BuildRequires:  udev
 BuildRequires:  zlib-devel
 #!BuildIgnore:  fop
-%if %suse_version > 1100
-BuildRequires:  libssh2-devel
-%endif
 %if %suse_version > 1220
 BuildRequires:  systemd
 %endif
@@ -49,9 +59,6 @@
 Source: %{name}-%{version}.tar.bz2
 Source2:%{name}-%{version}-rpmlintrc
 Source3:kdump.service
-Patch1: %{name}-ledblink-background.patch
-Patch2: %{name}-initrd-network.patch
-Patch3: %{name}-%{version}-detect-xen-dumps.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # rename "kdump-helpers" (10.3) -> "kdump" (11.0/SP2)
 Provides:   kdump-helpers = %{version}
@@ -89,9 +96,6 @@
 
 %prep
 %setup
-%patch1 -p1
-%patch2 -p1
-%patch3 -p1
 
 %build
 export CFLAGS="%optflags"
@@ -102,10 +106,19 @@
 make
 cd -
 
+%check
+cd build
+make test
+
 %install
 cd build
 make DESTDIR=$RPM_BUILD_ROOT install
 cd -
+# move udev rules
+mkdir -p $RPM_BUILD_ROOT/%{_udevrulesdir}
+mv $RPM_BUILD_ROOT/%{_sysconfdir}/udev/rules.d/* 
$RPM_BUILD_ROOT/%{_udevrulesdir}/
+# remove executable bit from non-binaries
+chmod -x $RPM_BUILD_ROOT/lib/kdump/setup-kdump.functions
 # symlink for init script
 mkdir -p $RPM_BUILD_ROOT/sbin
 ln -s /etc/init.d/boot.kdump $RPM_BUILD_ROOT/sbin/rckdump
@@ -186,7 +199,7 @@
 %{dracutlibdir}/modules.d/99kdump/
 %dir /lib/kdump
 /lib/kdump/*
-%config %{_sysconfdir}/udev/rules.d/70-kdump.rules
+%{_udevrulesdir}/70-kdump.rules
 %if %suse_version > 1220
 %{_unitdir}/kdump.service
 %endif

++ kdump-0.8.9-rpmlintrc -> kdump-0.8.10-rpmlintrc ++

++ kdump-0.8.9.tar.bz2 -> kdump-0.8.10.tar.bz2 ++
 13670 lines of diff (skipped)

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



commit kdump for openSUSE:Factory

2014-03-18 Thread h_root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2014-03-18 14:14:39

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2014-03-14 
15:16:34.0 +0100
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2014-03-18 
14:14:40.0 +0100
@@ -1,0 +2,18 @@
+Tue Mar 18 10:28:56 UTC 2014 - [email protected]
+
+- drop dependency on dracut-network again, because this subpackage
+  has been merged with the main dracut package
+
+---
+Mon Mar 17 14:39:01 UTC 2014 - [email protected]
+
+- kdump-initrd-network.patch: fix KDUMP_NETCONFIG="auto"
+
+---
+Mon Mar 17 12:33:49 UTC 2014 - [email protected]
+
+- add dependency on dracut-network in SLE12 and Factory
+- kdump-initrd-network.patch: include dracut 'network' module if
+  network is required
+
+---



Other differences:
--
++ kdump-initrd-network.patch ++
--- /var/tmp/diff_new_pack.NzERd9/_old  2014-03-18 14:14:40.0 +0100
+++ /var/tmp/diff_new_pack.NzERd9/_new  2014-03-18 14:14:40.0 +0100
@@ -5,19 +5,26 @@
 Acked-by: Petr Tesarik 
 
 ---
- init/mkdumprd |   20 
- 1 file changed, 20 insertions(+)
+ init/mkdumprd |   28 +++-
+ 1 file changed, 27 insertions(+), 1 deletion(-)
 
 --- a/init/mkdumprd
 +++ b/init/mkdumprd
-@@ -123,6 +123,26 @@ function run_dracut()
+@@ -119,10 +119,34 @@ function run_mkinitrd()
+ # Create a new initrd using dracut   
{{{
+ function run_dracut()
+ {
++local modules="kdump"
++
+ . /lib/kdump/setup-kdump.functions
  
  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'"
++  DRACUT_ARGS+=" --kernel-cmdline 'rd.neednet=1 ip=any'"
++  modules="$modules network"
 +elif [ -z "$KDUMP_NETCONFIG" ] ; then
 +  status_message "Network: none"
 +else
@@ -32,8 +39,21 @@
 +status_message "Network mode: Automatic IP (DHCP)"
 +DRACUT_ARGS+=" --kernel-cmdline 'rd.neednet=1 
ip=${interface}:dhcp'"
 +  fi
++  modules="$modules network"
 +fi
 +
  # add mount points
  kdump_get_mountpoints || return 1
  i=0
+@@ -135,8 +159,10 @@ function run_dracut()
+ done
+ 
+ # Check for additional modules
+-modules="kdump"
+ for protocol in "${kdump_Protocol[@]}" ; do
++  if [ "$protocol" = "nfs" ]; then
++  modules="$modules nfs"
++  fi
+   if [ "$protocol" = "cifs" -o "$protocol" = "smb" ]; then
+ modules="$modules cifs"
+   fi

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



commit kdump for openSUSE:Factory

2014-03-14 Thread h_root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2014-03-14 15:16:32

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2014-03-04 
13:27:38.0 +0100
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2014-03-14 
15:16:34.0 +0100
@@ -1,0 +2,23 @@
+Fri Mar 14 11:03:35 UTC 2014 - [email protected]
+
+- kdump-0.8.9-detect-xen-dumps.patch: Add '-X' to makedumpfile when
+  dumping a Xen host (bnc#864910).
+
+---
+Fri Mar 14 07:21:41 UTC 2014 - [email protected]
+
+- kdump-ledblink-background.patch: Run kdumptool in the background.
+
+---
+Wed Mar  5 16:58:02 UTC 2014 - [email protected]
+
+- kdump-initrd-network.patch: Added dracut network activation in
+  initrd to mkdumprd.
+
+---
+Tue Mar  4 12:19:24 UTC 2014 - [email protected]
+
+- kdump-ledblink-background.patch: Fixed wrong argument for
+  ledblink.
+
+---

New:

  kdump-0.8.9-detect-xen-dumps.patch
  kdump-initrd-network.patch
  kdump-ledblink-background.patch



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.gkNwOc/_old  2014-03-14 15:16:35.0 +0100
+++ /var/tmp/diff_new_pack.gkNwOc/_new  2014-03-14 15:16:35.0 +0100
@@ -49,6 +49,9 @@
 Source: %{name}-%{version}.tar.bz2
 Source2:%{name}-%{version}-rpmlintrc
 Source3:kdump.service
+Patch1: %{name}-ledblink-background.patch
+Patch2: %{name}-initrd-network.patch
+Patch3: %{name}-%{version}-detect-xen-dumps.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # rename "kdump-helpers" (10.3) -> "kdump" (11.0/SP2)
 Provides:   kdump-helpers = %{version}
@@ -86,6 +89,9 @@
 
 %prep
 %setup
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
 
 %build
 export CFLAGS="%optflags"

++ kdump-0.8.9-detect-xen-dumps.patch ++
From: Petr Tesarik 
Subject: Add '-X' to makedumpfile when dumping a Xen host
References: bnc#864910
Patch-mainline: 0.8.10

When dumping a Xen virtualization host, kdump should dump only Dom0 and
hypervisor pages, i.e. it should exclude all DomU pages.

A kdumptool flag is introduced to override this default behaviour.

Signed-off-by: Petr Tesarik 

---
 NEWS   |4 +
 doc/man/kdump.5.txt.in |7 +-
 kdumptool/savedump.cc  |9 ++
 kdumptool/util.cc  |  166 +
 kdumptool/util.h   |   20 +
 sysconfig.kdump.in |3 
 6 files changed, 206 insertions(+), 3 deletions(-)

--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,7 @@
+0.8.10
+--
+  * Filter out DomU pages, when dumping a Xen virtualization host
+
 0.8.9
 -
   * Fixed dracut hook install
--- a/doc/man/kdump.5.txt.in
+++ b/doc/man/kdump.5.txt.in
@@ -481,7 +481,7 @@ KDUMPTOOL_FLAGS
 ~~~
 
 This is a space-separated list of flags to tweak the run-time behaviour of
-*kdumptool*(8). Currently, only one flag is supported:
+*kdumptool*(8). These flags are recognized:
 
 *NOSPARSE*::
   Disable the creation of sparse-files. This flag is for debugging purposes,
@@ -495,6 +495,11 @@ This is a space-separated list of flags
   You can specify this flag to force the use of only one dumping process,
   regardless of the value of KDUMP_CPUS.
 
+*XENALLDOMAINS*::
+  When dumping a Xen virtualization host, *makedumpfile*(8) is normally
+  invoked with the _-X_ option to exclude DomU pages. This flag can be
+  used to include all pages in the dump.
+
 Default: ""
 
 KDUMP_NETCONFIG
--- a/kdumptool/savedump.cc
+++ b/kdumptool/savedump.cc
@@ -275,7 +275,12 @@ void SaveDump::saveDump(const RootDirURL
cerr << "Splitting ELF dumps is not supported." << endl;
 }
 
-if (useElf && dumplevel == 0) {
+bool excludeDomU = false;
+if (!config->kdumptoolContainsFlag("XENALLDOMAINS") &&
+   Util::isXenCoreDump(m_dump.c_str()))
+  excludeDomU = true;
+
+if (useElf && dumplevel == 0 && !excludeDomU) {
 // use file source?
 provider = new FileDataProvider(m_dump.c_str());
 m_useMakedumpfile = false;
@@ -287,6 +292,8 @@ void SaveDump::saveDump(const RootDirURL
cmdline << "--split ";
 cmdline << config->MAKEDUMPFILE_OPTIONS.value() << " ";
 cmdline << "-d " << config->KDUMP_DUMPLEVEL.value() << " ";
+   if (excludeDomU)
+   cmdline << "-X ";
 if (useElf)
 cmdline << "-E ";

commit kdump for openSUSE:Factory

2014-03-04 Thread h_root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2014-03-04 13:27:37

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2014-03-01 
07:51:22.0 +0100
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2014-03-04 
13:27:38.0 +0100
@@ -1,0 +2,5 @@
+Sun Mar  2 15:35:11 UTC 2014 - [email protected]
+
+- %filelist simplified as suggested by [email protected].
+
+---



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.p9jaJV/_old  2014-03-04 13:27:38.0 +0100
+++ /var/tmp/diff_new_pack.p9jaJV/_new  2014-03-04 13:27:38.0 +0100
@@ -177,8 +177,7 @@
 /lib/mkinitrd/scripts/setup-mkdumprd.sh
 %dir %{dracutlibdir}
 %dir %{dracutlibdir}/modules.d
-%dir %{dracutlibdir}/modules.d/99kdump
-%{dracutlibdir}/modules.d/99kdump/*
+%{dracutlibdir}/modules.d/99kdump/
 %dir /lib/kdump
 /lib/kdump/*
 %config %{_sysconfdir}/udev/rules.d/70-kdump.rules

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



commit kdump for openSUSE:Factory

2014-02-28 Thread h_root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2014-03-01 07:51:21

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2014-02-15 
08:05:31.0 +0100
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2014-03-01 
07:51:22.0 +0100
@@ -1,0 +2,22 @@
+Fri Feb 28 19:18:00 UTC 2014 - [email protected]
+
+- Update to 0.8.9
+  o fix dracut support
+  o fix dump save when /boot is not a mount point
+
+- kdumptool_find_kernel.patch: Dropped.
+
+---
+Fri Feb 28 17:21:29 UTC 2014 - [email protected]
+
+- Update to 0.8.8
+  o dracut support
+  o new kdumptool command: calibrate
+  o new kdumptool flag: NOSPLIT
+  o better support for SMP dumps
+
+- kdump-0.8.7-bsp.patch: Dropped.
+- kdump-0.8.7-calibrate.patch: Dropped.
+- kdump-0.8.7-nr_cpus.patch: Dropped.
+
+---

Old:

  kdump-0.8.7-bsp.patch
  kdump-0.8.7-calibrate.patch
  kdump-0.8.7-nr_cpus.patch
  kdump-0.8.7-rpmlintrc
  kdump-0.8.7.tar.bz2
  kdumptool_find_kernel.patch

New:

  kdump-0.8.9-rpmlintrc
  kdump-0.8.9.tar.bz2



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.K3wisS/_old  2014-03-01 07:51:22.0 +0100
+++ /var/tmp/diff_new_pack.K3wisS/_new  2014-03-01 07:51:22.0 +0100
@@ -16,10 +16,12 @@
 #
 
 
+%define dracutlibdir %{_prefix}/lib/dracut
+
 Url:http://freehg.org/u/bwalle/kdump/
 
 Name:   kdump
-Version:0.8.7
+Version:0.8.9
 Release:0
 Requires:   curl
 Requires:   makedumpfile
@@ -47,10 +49,6 @@
 Source: %{name}-%{version}.tar.bz2
 Source2:%{name}-%{version}-rpmlintrc
 Source3:kdump.service
-Patch1: kdumptool_find_kernel.patch
-Patch2: %{name}-%{version}-nr_cpus.patch
-Patch3: %{name}-%{version}-bsp.patch
-Patch4: %{name}-%{version}-calibrate.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # rename "kdump-helpers" (10.3) -> "kdump" (11.0/SP2)
 Provides:   kdump-helpers = %{version}
@@ -88,10 +86,6 @@
 
 %prep
 %setup
-%patch1 -p0
-%patch2 -p1
-%patch3 -p1
-%patch4 -p1
 
 %build
 export CFLAGS="%optflags"
@@ -181,6 +175,10 @@
 /lib/mkinitrd/scripts/*-kdump.sh
 /lib/mkinitrd/scripts/setup-kdumpfs.sh
 /lib/mkinitrd/scripts/setup-mkdumprd.sh
+%dir %{dracutlibdir}
+%dir %{dracutlibdir}/modules.d
+%dir %{dracutlibdir}/modules.d/99kdump
+%{dracutlibdir}/modules.d/99kdump/*
 %dir /lib/kdump
 /lib/kdump/*
 %config %{_sysconfdir}/udev/rules.d/70-kdump.rules

++ kdump-0.8.7-rpmlintrc -> kdump-0.8.9-rpmlintrc ++

++ kdump-0.8.7.tar.bz2 -> kdump-0.8.9.tar.bz2 ++
 1964 lines of diff (skipped)

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



commit kdump for openSUSE:Factory

2014-02-14 Thread h_root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2014-02-15 08:05:29

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2014-01-13 
10:53:20.0 +0100
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2014-02-15 
08:05:31.0 +0100
@@ -1,0 +2,22 @@
+Fri Feb 14 16:14:45 UTC 2014 - [email protected]
+
+- kdump-0.8.7-nr_cpus.patch: Use nr_cpus instead of maxcpus with
+  recent kernels. (FATE#315725).
+- kdump-0.8.7-bsp.patch: Add disable_cpu_apicid for BSP to the
+  commandline (bnc#861981).
+- kdump-0.8.7-calibrate.patch: Implement kdump memory calibration
+  (FATE#315241).
+
+
+---
+Fri Feb 14 12:15:14 UTC 2014 - [email protected]
+
+- Added patch kdumptool_find_kernel.patch: kdumptool argument order was
+  wrong in debug mode 
+
+---
+Fri Jan 24 02:26:20 UTC 2014 - [email protected]
+
+- Removed s390x from the list of excluded architectures.
+
+---

New:

  kdump-0.8.7-bsp.patch
  kdump-0.8.7-calibrate.patch
  kdump-0.8.7-nr_cpus.patch
  kdumptool_find_kernel.patch



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.YWBbPl/_old  2014-02-15 08:05:31.0 +0100
+++ /var/tmp/diff_new_pack.YWBbPl/_new  2014-02-15 08:05:31.0 +0100
@@ -47,6 +47,10 @@
 Source: %{name}-%{version}.tar.bz2
 Source2:%{name}-%{version}-rpmlintrc
 Source3:kdump.service
+Patch1: kdumptool_find_kernel.patch
+Patch2: %{name}-%{version}-nr_cpus.patch
+Patch3: %{name}-%{version}-bsp.patch
+Patch4: %{name}-%{version}-calibrate.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # rename "kdump-helpers" (10.3) -> "kdump" (11.0/SP2)
 Provides:   kdump-helpers = %{version}
@@ -59,7 +63,7 @@
 %endif
 Recommends: nfs-client cifs-utils
 PreReq: coreutils sed
-ExcludeArch:s390 s390x ppc
+ExcludeArch:s390 ppc
 
 %description
 kdump is a package that includes several scripts for kdump, including
@@ -84,6 +88,11 @@
 
 %prep
 %setup
+%patch1 -p0
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+
 %build
 export CFLAGS="%optflags"
 export CXXFLAGS="%optflags"

++ kdump-0.8.7-bsp.patch ++
From: Petr Tesarik 
Subject: Add disable_cpu_apicid for BSP to the commandline
References: bnc#861981
Patch-mainline: v0.8.8

Since the BSP cannot be brought up in the kdump environment, and there is no
reliable way of getting the APIC ID of an offlined CPU, it must be figured
out by the primary kernel and passed as a command-line option.

Signed-off-by: Petr Tesarik 

---
 NEWS|2 ++
 init/rc.kdump.functions |   13 +++--
 2 files changed, 13 insertions(+), 2 deletions(-)

--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,7 @@
 0.8.8
 -
+  * Add disable_cpu_apicid parameter to the command line on x86 to prevent
+bringing up the BSP in the kdump kernel.
   * Use nr_cpus instead of maxcpus with recent kernels.
 
 0.8.7
--- a/init/rc.kdump.functions
+++ b/init/rc.kdump.functions
@@ -103,9 +103,18 @@ function build_kdump_commandline()
 < /proc/cmdline)
 # Use deadline for saving the memory footprint
 commandline="$commandline elevator=deadline sysrq=yes reset_devices"
-case `uname -i` in
+local arch=$(uname -i)
+case "$arch" in
 i?86|x86_64|ia64)
-commandline="$commandline irqpoll maxcpus=${KDUMP_CPUS:-1}"
+local nr_cpus=$(cpus_param "$kdump_kernel")
+commandline="$commandline irqpoll ${nr_cpus}=${KDUMP_CPUS:-1}"
+if [ "$arch" = "x86_64" -o -z "${arch#i?86}" ]; then
+local boot_apicid=$(
+awk -F':[ \t]' '/^initial apicid[ \t]*:/ {print $2; exit}' 
\
+/proc/cpuinfo)
+test -n "$boot_apicid" &&
+commandline="$commandline disable_cpu_apicid=$boot_apicid"
+fi
 ;;
s390*)
commandline="$commandline zfcp.allow_lun_scan=0"
++ kdump-0.8.7-calibrate.patch ++
From: Petr Tesarik 
Subject: Implement kdump memory calibration
References: FATE#315241
Patch-mainline: v0.8.8

This command is used by yast-kdump to find out how much RAM should
be reserved for the crash kernel.

Signed-off-by: Petr Tesarik 

---
 NEWS |1 
 kdumptool/CMakeLists.txt |2 +
 kdumptool/calibrate.cc   |   78 +++
 kdumptool/

commit kdump for openSUSE:Factory

2014-01-13 Thread h_root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2014-01-13 10:53:19

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2013-12-08 
19:27:18.0 +0100
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2014-01-13 
10:53:20.0 +0100
@@ -1,0 +2,9 @@
+Mon Jan 13 06:37:39 UTC 2014 - [email protected]
+
+- Update to 0.8.7
+  o Change libelf interface to elfutils (libelf1)
+  o Fix parsing of command line options
+  o New tests
+  o Many code cleanups 
+
+---

Old:

  kdump-0.8.6-rpmlintrc
  kdump-0.8.6.tar.bz2

New:

  kdump-0.8.7-rpmlintrc
  kdump-0.8.7.tar.bz2



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.twkDEk/_old  2014-01-13 10:53:21.0 +0100
+++ /var/tmp/diff_new_pack.twkDEk/_new  2014-01-13 10:53:21.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package kdump
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
 Url:http://freehg.org/u/bwalle/kdump/
 
 Name:   kdump
-Version:0.8.6
+Version:0.8.7
 Release:0
 Requires:   curl
 Requires:   makedumpfile
@@ -31,7 +31,7 @@
 BuildRequires:  cmake
 BuildRequires:  gcc-c++
 BuildRequires:  libcurl-devel
-BuildRequires:  libelf0-devel
+BuildRequires:  libelf-devel
 BuildRequires:  libesmtp-devel
 BuildRequires:  libopenssl-devel
 BuildRequires:  libxslt

++ kdump-0.8.6-rpmlintrc -> kdump-0.8.7-rpmlintrc ++

++ kdump-0.8.6.tar.bz2 -> kdump-0.8.7.tar.bz2 ++
 6843 lines of diff (skipped)

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



commit kdump for openSUSE:Factory

2013-12-08 Thread h_root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2013-12-08 19:27:17

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2013-09-13 
14:46:38.0 +0200
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2013-12-08 
19:27:18.0 +0100
@@ -1,0 +2,7 @@
+Fri Dec  6 17:25:46 UTC 2013 - [email protected]
+
+- Update to 0.8.6
+  o IPv6 support (FATE 316563) 
+  o unmount filesystems before rebooting kdump environment
+
+---

Old:

  kdump-0.8.5-rpmlintrc
  kdump-0.8.5.tar.bz2

New:

  kdump-0.8.6-rpmlintrc
  kdump-0.8.6.tar.bz2



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.RCWtxT/_old  2013-12-08 19:27:19.0 +0100
+++ /var/tmp/diff_new_pack.RCWtxT/_new  2013-12-08 19:27:19.0 +0100
@@ -19,7 +19,7 @@
 Url:http://freehg.org/u/bwalle/kdump/
 
 Name:   kdump
-Version:0.8.5
+Version:0.8.6
 Release:0
 Requires:   curl
 Requires:   makedumpfile

++ kdump-0.8.5-rpmlintrc -> kdump-0.8.6-rpmlintrc ++

++ kdump-0.8.5.tar.bz2 -> kdump-0.8.6.tar.bz2 ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kdump-0.8.5/.hg_archival.txt 
new/kdump-0.8.6/.hg_archival.txt
--- old/kdump-0.8.5/.hg_archival.txt2013-09-13 12:19:10.0 +0200
+++ new/kdump-0.8.6/.hg_archival.txt2013-12-06 18:24:17.0 +0100
@@ -1,5 +1,5 @@
 repo: bc186d1ee81e4dfdc5721d6a5743a6ed8b3cc457
-node: ecda86e4831541c15802920b6626f0bb3ab32dca
+node: be65702c890d4ae0f2fc35443c8aff70da0e2714
 branch: default
-latesttag: v0.8.4
-latesttagdistance: 42
+latesttag: v0.8.6
+latesttagdistance: 1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kdump-0.8.5/.hgtags new/kdump-0.8.6/.hgtags
--- old/kdump-0.8.5/.hgtags 2013-09-13 12:19:10.0 +0200
+++ new/kdump-0.8.6/.hgtags 2013-12-06 18:24:17.0 +0100
@@ -20,3 +20,5 @@
 d441f2ef4f58d9c85bbb3a79a1994bda61f369a5 v0.8.2
 136fd1ff12ab582149ff06a8d983b414fa3d770c v0.8.3
 a87bf22c9242118de2f7bbf9588923026e40df98 v0.8.4
+ecda86e4831541c15802920b6626f0bb3ab32dca v0.8.5
+1c7dcec40d533dc7642ee39a96030711cac8d8cc v0.8.6
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kdump-0.8.5/CMakeLists.txt 
new/kdump-0.8.6/CMakeLists.txt
--- old/kdump-0.8.5/CMakeLists.txt  2013-09-13 12:19:10.0 +0200
+++ new/kdump-0.8.6/CMakeLists.txt  2013-12-06 18:24:17.0 +0100
@@ -26,7 +26,7 @@
 
 cmake_minimum_required(VERSION 2.6.2)
 set (PACKAGE_STRING "kdump")
-set (PACKAGE_VERSION "0.8.5")
+set (PACKAGE_VERSION "0.8.6")
 
 include_directories("${PROJECT_BINARY_DIR}")
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kdump-0.8.5/NEWS new/kdump-0.8.6/NEWS
--- old/kdump-0.8.5/NEWS2013-09-13 12:19:10.0 +0200
+++ new/kdump-0.8.6/NEWS2013-12-06 18:24:17.0 +0100
@@ -1,3 +1,8 @@
+0.8.6
+-
+  * Support for IPv6 targets
+  * Unmount all filesystems before rebooting in the kdump environment
+
 0.8.5
 -
   * Always use /proc/mounts instead of /etc/mtab.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kdump-0.8.5/init/boot-kdump.sh 
new/kdump-0.8.6/init/boot-kdump.sh
--- old/kdump-0.8.5/init/boot-kdump.sh  2013-09-13 12:19:10.0 +0200
+++ new/kdump-0.8.6/init/boot-kdump.sh  2013-12-06 18:24:17.0 +0100
@@ -49,6 +49,7 @@
 test -f $FADUMP_RELEASE_MEM && echo 1 > $FADUMP_RELEASE_MEM
 elif [ $KDUMP_IMMEDIATE_REBOOT = "yes" \
 -o "$KDUMP_IMMEDIATE_REBOOT" = "YES" ] ; then
+umount -a
 reboot -f
 else
 echo
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kdump-0.8.5/init/mkdumprd 
new/kdump-0.8.6/init/mkdumprd
--- old/kdump-0.8.5/init/mkdumprd   2013-09-13 12:19:10.0 +0200
+++ new/kdump-0.8.6/init/mkdumprd   2013-12-06 18:24:17.0 +0100
@@ -126,7 +126,7 @@
 # check if we need to regenerate it?
 if (( ! $FORCE )) ; then
 if [ -f "$INITRD" ] && \
-[ "$CONFIG" -ot "$INITRD" ] && \
+[ "$KDUMP_CONFIG" -ot "$INITRD" ] && \
 [ /root/.ssh/id_dsa.pub -ot "$INITRD" ] && \
 [ /root/.ssh/id_dsa -ot "$INITRD" ] && \
 [ "$KERNEL" -ot "$INITRD" ] ; then
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kdu

commit kdump for openSUSE:Factory

2013-09-13 Thread h_root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2013-09-13 14:46:37

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2013-09-07 
07:34:24.0 +0200
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2013-09-13 
14:46:38.0 +0200
@@ -1,0 +2,7 @@
+Fri Sep 13 10:30:09 UTC 2013 - [email protected]
+
+- Update to 0.8.5
+  o See NEWS for a complete list of changes. 
+- kdump.spec: add newly installed files
+
+---

Old:

  kdump-0.8.2-rpmlintrc
  kdump-0.8.2.tar.bz2

New:

  kdump-0.8.5-rpmlintrc
  kdump-0.8.5.tar.bz2



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.c4rpJM/_old  2013-09-13 14:46:38.0 +0200
+++ /var/tmp/diff_new_pack.c4rpJM/_new  2013-09-13 14:46:38.0 +0200
@@ -19,7 +19,7 @@
 Url:http://freehg.org/u/bwalle/kdump/
 
 Name:   kdump
-Version:0.8.2
+Version:0.8.5
 Release:0
 Requires:   curl
 Requires:   makedumpfile
@@ -161,6 +161,7 @@
 %doc ChangeLog COPYING README NEWS
 %{_sbindir}/kdumptool
 %{_sbindir}/mkdumprd
+%{_sbindir}/kdump-bootloader.pl
 %{_mandir}/man5/kdump.5.gz
 %{_mandir}/man7/kdump.7.gz
 %{_mandir}/man8/kdumptool.8.gz
@@ -171,6 +172,8 @@
 /lib/mkinitrd/scripts/*-kdump.sh
 /lib/mkinitrd/scripts/setup-kdumpfs.sh
 /lib/mkinitrd/scripts/setup-mkdumprd.sh
+%dir /lib/kdump
+/lib/kdump/*
 %config %{_sysconfdir}/udev/rules.d/70-kdump.rules
 %if %suse_version > 1220
 %{_unitdir}/kdump.service

++ kdump-0.8.2-rpmlintrc -> kdump-0.8.5-rpmlintrc ++

++ kdump-0.8.2.tar.bz2 -> kdump-0.8.5.tar.bz2 ++
 5526 lines of diff (skipped)

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



commit kdump for openSUSE:Factory

2013-09-06 Thread h_root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2013-09-07 07:34:22

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump"

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2013-03-08 
11:20:50.0 +0100
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2013-09-07 
07:34:24.0 +0200
@@ -1,0 +2,6 @@
+Wed Sep  4 14:50:58 UTC 2013 - [email protected]
+
+- Add kdump.service to properly handle kdump initscript with
+  systemd.
+
+---

New:

  kdump.service



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.Y2jIJ9/_old  2013-09-07 07:34:25.0 +0200
+++ /var/tmp/diff_new_pack.Y2jIJ9/_new  2013-09-07 07:34:25.0 +0200
@@ -40,9 +40,13 @@
 %if %suse_version > 1100
 BuildRequires:  libssh2-devel
 %endif
+%if %suse_version > 1220
+BuildRequires:  systemd
+%endif
 PreReq: %insserv_prereq %fillup_prereq mkinitrd
 Source: %{name}-%{version}.tar.bz2
 Source2:%{name}-%{version}-rpmlintrc
+Source3:kdump.service
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # rename "kdump-helpers" (10.3) -> "kdump" (11.0/SP2)
 Provides:   kdump-helpers = %{version}
@@ -50,6 +54,9 @@
 # update should detect the split-off from kexec-tools
 Provides:   kexec-tools:/etc/init.d/kdump
 Requires:   kexec-tools
+%if %suse_version > 1220
+%systemd_requires
+%endif
 Recommends: nfs-client cifs-utils
 PreReq: coreutils sed
 ExcludeArch:s390 s390x ppc
@@ -96,6 +103,16 @@
 # empty directory
 mkdir $RPM_BUILD_ROOT/var/crash
 
+%if %suse_version > 1220
+mkdir -p $RPM_BUILD_ROOT%{_unitdir}
+install -m644 %{S:3} $RPM_BUILD_ROOT%{_unitdir}
+%endif
+
+%if %suse_version > 1220
+%pre
+%service_add_pre kdump.service
+%endif
+
 %post
 # change only permission if the file exists before /etc/sysconfig/kdump
 # has been created from /var/adm/fillup-templates/sysconfig.kdump
@@ -113,10 +130,16 @@
 ! test -d /var/log/dump ; then
 ln -snf /var/crash /var/log/dump
 fi
+%if %suse_version > 1220
+%service_add_post kdump.service
+%endif
 
 %preun
 echo "Stopping kdump ..."
 %stop_on_removal boot.kdump
+%if %suse_version > 1220
+%service_del_preun kdump.service
+%endif
 
 %postun
 # force regeneration of kdumprd
@@ -126,6 +149,9 @@
 rm /var/log/dump &>/dev/null || true
 %restart_on_update boot.kdump
 %insserv_cleanup
+%if %suse_version > 1220
+%service_del_postun kdump.service
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -146,5 +172,8 @@
 /lib/mkinitrd/scripts/setup-kdumpfs.sh
 /lib/mkinitrd/scripts/setup-mkdumprd.sh
 %config %{_sysconfdir}/udev/rules.d/70-kdump.rules
+%if %suse_version > 1220
+%{_unitdir}/kdump.service
+%endif
 
 %changelog

++ kdump.service ++
[Unit]
Description=Load kdump kernel on startup
After=local-fs.target

[Service]
Type=oneshot
ExecStart=/etc/init.d/boot.kdump start
ExecStop=/etc/init.d/boot.kdump stop
RemainAfterExit=true

[Install]
WantedBy=multi-user.target
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



commit kdump for openSUSE:Factory

2013-03-08 Thread h_root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2013-03-08 10:50:06

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump", Maintainer is "[email protected]"

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2012-04-17 
07:45:35.0 +0200
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2013-03-08 
10:50:08.0 +0100
@@ -1,0 +2,28 @@
+Wed Jan  2 16:05:51 UTC 2013 - [email protected]
+
+- Fix the broken package rename from kdump-helpers.
+
+---
+Wed Jan  2 15:38:25 UTC 2013 - [email protected]
+
+- Update to 0.8.2
+  o FATE#314283: kdump: log-only mode
+  o checking of SSH keys
+  o lots of cleanups and bugfixes
+- Drop the following patches (included in upstream now):
+  o kdump-fix-gcc46.diff
+  o kdump-gcc47.patch
+  o kdump-save-log
+  o kdump-add-none-format
+  o kdump-udev-rule
+  o kdump-usrmerge.patch
+- kdump-format-list: Dropped (wrong).
+
+---
+Sun Oct  7 22:16:04 UTC 2012 - [email protected]
+
+- Since the /usr merge, the mkinitrd bits are broken
+  since tools have changed locations.
+- Recommend nfs-client and cifs-utils too. 
+
+---

Old:

  kdump-0.8.1-rpmlintrc
  kdump-0.8.1.tar.bz2
  kdump-add-none-format
  kdump-fix-gcc46.diff
  kdump-format-list
  kdump-gcc47.patch
  kdump-save-log
  kdump-udev-rule

New:

  kdump-0.8.2-rpmlintrc
  kdump-0.8.2.tar.bz2



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.IcRnj7/_old  2013-03-08 10:50:09.0 +0100
+++ /var/tmp/diff_new_pack.IcRnj7/_new  2013-03-08 10:50:09.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package kdump
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
 Url:http://freehg.org/u/bwalle/kdump/
 
 Name:   kdump
-Version:0.8.1
+Version:0.8.2
 Release:0
 Requires:   curl
 Requires:   makedumpfile
@@ -33,6 +33,7 @@
 BuildRequires:  libcurl-devel
 BuildRequires:  libelf0-devel
 BuildRequires:  libesmtp-devel
+BuildRequires:  libopenssl-devel
 BuildRequires:  libxslt
 BuildRequires:  zlib-devel
 #!BuildIgnore:  fop
@@ -42,20 +43,14 @@
 PreReq: %insserv_prereq %fillup_prereq mkinitrd
 Source: %{name}-%{version}.tar.bz2
 Source2:%{name}-%{version}-rpmlintrc
-Patch0: %{name}-fix-gcc46.diff
-Patch1: kdump-gcc47.patch
-Patch2: kdump-format-list
-Patch3: kdump-save-log
-Patch4: kdump-add-none-format
-Patch5: kdump-udev-rule
-
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # rename "kdump-helpers" (10.3) -> "kdump" (11.0/SP2)
-Provides:   kdump-helpers = 0.2.4
-Obsoletes:  kdump-helpers <= 0.2.4
+Provides:   kdump-helpers = %{version}
+Obsoletes:  kdump-helpers < %{version}
 # update should detect the split-off from kexec-tools
 Provides:   kexec-tools:/etc/init.d/kdump
 Requires:   kexec-tools
+Recommends: nfs-client cifs-utils
 PreReq: coreutils sed
 ExcludeArch:s390 s390x ppc
 
@@ -82,13 +77,6 @@
 
 %prep
 %setup
-%patch0 -p1
-%patch1 -p1
-%patch2 -p1
-%patch3 -p1
-%patch4 -p1
-%patch5 -p1
-
 %build
 export CFLAGS="%optflags"
 export CXXFLAGS="%optflags"
@@ -155,6 +143,8 @@
 %{_sysconfdir}/init.d/boot.kdump
 /var/adm/fillup-templates/sysconfig.kdump
 /lib/mkinitrd/scripts/*-kdump.sh
+/lib/mkinitrd/scripts/setup-kdumpfs.sh
+/lib/mkinitrd/scripts/setup-mkdumprd.sh
 %config %{_sysconfdir}/udev/rules.d/70-kdump.rules
 
 %changelog

++ kdump-0.8.1-rpmlintrc -> kdump-0.8.2-rpmlintrc ++

++ kdump-0.8.1.tar.bz2 -> kdump-0.8.2.tar.bz2 ++
 3952 lines of diff (skipped)

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



commit kdump for openSUSE:Factory

2012-04-16 Thread h_root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2012-04-17 07:45:32

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump", Maintainer is "[email protected]"

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2012-03-22 
12:34:03.0 +0100
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2012-04-17 
07:45:35.0 +0200
@@ -1,0 +2,8 @@
+Wed Apr 11 03:45:19 UTC 2012 - [email protected].
+
+- kdump: Add 'none' format
+- kdump: Allow format to be a list
+- kdump: Save dmesg during dump
+- kdump: Use correct script location in udev rule
+
+---

New:

  kdump-add-none-format
  kdump-format-list
  kdump-save-log
  kdump-udev-rule



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.NiQzGZ/_old  2012-04-17 07:45:36.0 +0200
+++ /var/tmp/diff_new_pack.NiQzGZ/_new  2012-04-17 07:45:36.0 +0200
@@ -44,6 +44,11 @@
 Source2:%{name}-%{version}-rpmlintrc
 Patch0: %{name}-fix-gcc46.diff
 Patch1: kdump-gcc47.patch
+Patch2: kdump-format-list
+Patch3: kdump-save-log
+Patch4: kdump-add-none-format
+Patch5: kdump-udev-rule
+
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # rename "kdump-helpers" (10.3) -> "kdump" (11.0/SP2)
 Provides:   kdump-helpers = 0.2.4
@@ -79,6 +84,10 @@
 %setup
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
 
 %build
 export CFLAGS="%optflags"

++ kdump-add-none-format ++
From: Jeff Mahoney 
Subject: kdump: Add 'none' format

 Now that we have the ability to dump the dmesg log after a crash, it's
 useful for users who don't have any use for a crash dump other than
 to generate the dmesg log to avoid saving the dump at all. This avoids
 both using the disk space required for a lot as well as the time
 involved in waiting for the dump to complete only to later have to
 remove it manually.

Signed-off-by: Jeff Mahoney 
---
 kdumptool/savedump.cc |   17 ++---
 sysconfig.kdump   |5 +++--
 2 files changed, 13 insertions(+), 9 deletions(-)

--- a/kdumptool/savedump.cc
+++ b/kdumptool/savedump.cc
@@ -277,12 +277,13 @@ void SaveDump::saveDump()
 
 bool useElf = strcasestr(dumpformat.c_str(), "elf") != NULL;
 bool useCompressed = strcasestr(dumpformat.c_str(), "compressed") != NULL;
+bool noDump = strcasestr(dumpformat.c_str(), "none") != NULL;
 
 if (useElf && dumplevel == 0) {
 // use file source?
 provider = new FileDataProvider(m_dump.c_str());
 m_useMakedumpfile = false;
-} else {
+} else if (!noDump) {
 // use makedumpfile
 stringstream cmdline;
 cmdline << "makedumpfile ";
@@ -316,12 +317,14 @@ void SaveDump::saveDump()
 cout << "Saving dump using makedumpfile" << endl;
 terminal.printLine();
 }
-TerminalProgress progress("Saving dump");
-if (config->getVerbose() & Configuration::VERB_PROGRESS)
-provider->setProgress(&progress);
-else
-cout << "Saving dump ..." << endl;
-m_transfer->perform(provider, "vmcore", &m_usedDirectSave);
+if (provider) {
+TerminalProgress progress("Saving dump");
+if (config->getVerbose() & Configuration::VERB_PROGRESS)
+provider->setProgress(&progress);
+else
+cout << "Saving dump ..." << endl;
+m_transfer->perform(provider, "vmcore", &m_usedDirectSave);
+}
 m_transfer->perform(logProvider, "dmesg.txt", NULL);
 if (m_useMakedumpfile)
 terminal.printLine();
--- a/sysconfig.kdump
+++ b/sysconfig.kdump
@@ -154,11 +154,12 @@ KDUMP_VERBOSE=3
 #
 KDUMP_DUMPLEVEL=0
 
-## Type:list(,compressed,ELF)
+## Type:list(,compressed,ELF,none)
 ## Default: "compressed"
 ## ServiceRestart: kdump
 #
-# This variable specifies the dump format.
+# This variable specifies the dump format. Using the 'none' option will
+# skip capturing the dump entirely and only save the log messages.
 #
 # See also: kdump(5).
 KDUMP_DUMPFORMAT="compressed"
++ kdump-format-list ++
From: Jeff Mahoney 
Subject: kdump: Allow format to be a list

 /etc/sysconfig/kdump specifies that the KDUMP_FORMAT variable is a comma
 separated list of options. The kdumptool itself doesn't treat it as a list
 and will ignore all options if more than one is specified.

 This patch searches for the option and uses it if it is present.

Signed-off-by: Jeff Mahoney 
---
 kdumptool/savedump.cc |4 ++--
 1 file

commit kdump for openSUSE:Factory

2012-03-22 Thread h_root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2012-03-22 12:33:35

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump", Maintainer is "[email protected]"

Changes:

--- /work/SRC/openSUSE:Factory/kdump/kdump.changes  2011-09-23 
02:06:34.0 +0200
+++ /work/SRC/openSUSE:Factory/.kdump.new/kdump.changes 2012-03-22 
12:34:03.0 +0100
@@ -1,0 +2,5 @@
+Sat Mar 17 15:23:22 UTC 2012 - [email protected]
+
+- Add kdump-gcc47.patch: Fix build with gcc 4.7.
+
+---

New:

  kdump-gcc47.patch



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.XOdK4e/_old  2012-03-22 12:34:14.0 +0100
+++ /var/tmp/diff_new_pack.XOdK4e/_new  2012-03-22 12:34:14.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package kdump
 #
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -15,20 +15,26 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-# norootforbuild
 
 Url:http://freehg.org/u/bwalle/kdump/
 
 Name:   kdump
-License:GPL-2.0+
 Version:0.8.1
-Release:11
-Requires:   curl openssh makedumpfile
+Release:0
+Requires:   curl
+Requires:   makedumpfile
+Requires:   openssh
 Summary:Script for kdump
+License:GPL-2.0+
 Group:  System/Kernel
+BuildRequires:  asciidoc
+BuildRequires:  cmake
+BuildRequires:  gcc-c++
+BuildRequires:  libcurl-devel
+BuildRequires:  libelf0-devel
 BuildRequires:  libesmtp-devel
-BuildRequires:  gcc-c++ libcurl-devel libelf0-devel zlib-devel
-BuildRequires:  asciidoc cmake libxslt
+BuildRequires:  libxslt
+BuildRequires:  zlib-devel
 #!BuildIgnore:  fop
 %if %suse_version > 1100
 BuildRequires:  libssh2-devel
@@ -37,6 +43,7 @@
 Source: %{name}-%{version}.tar.bz2
 Source2:%{name}-%{version}-rpmlintrc
 Patch0: %{name}-fix-gcc46.diff
+Patch1: kdump-gcc47.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # rename "kdump-helpers" (10.3) -> "kdump" (11.0/SP2)
 Provides:   kdump-helpers = 0.2.4
@@ -71,6 +78,7 @@
 %prep
 %setup
 %patch0 -p1
+%patch1 -p1
 
 %build
 export CFLAGS="%optflags"

++ kdump-gcc47.patch ++
Index: kdump-0.8.1/kdumptool/dataprovider.cc
===
--- kdump-0.8.1.orig/kdumptool/dataprovider.cc
+++ kdump-0.8.1/kdumptool/dataprovider.cc
@@ -20,6 +20,7 @@
 #include 
 #include 
 #include 
+#include 
 
 #include "dataprovider.h"
 #include "global.h"
Index: kdump-0.8.1/kdumptool/debug.cc
===
--- kdump-0.8.1.orig/kdumptool/debug.cc
+++ kdump-0.8.1/kdumptool/debug.cc
@@ -22,6 +22,7 @@
 #include 
 #include 
 #include 
+#include 
 
 #include "debug.h"
 
Index: kdump-0.8.1/kdumptool/socket.cc
===
--- kdump-0.8.1.orig/kdumptool/socket.cc
+++ kdump-0.8.1/kdumptool/socket.cc
@@ -16,6 +16,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  * 02110-1301, USA.
  */
+#include 
 #include 
 #include 
 #include 
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



commit kdump for openSUSE:Factory

2011-12-06 Thread h_root
Hello community,

here is the log from the commit of package kdump for openSUSE:Factory checked 
in at 2011-12-06 18:21:35

Comparing /work/SRC/openSUSE:Factory/kdump (Old)
 and  /work/SRC/openSUSE:Factory/.kdump.new (New)


Package is "kdump", Maintainer is "[email protected]"

Changes:




Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.2Heq57/_old  2011-12-06 18:37:37.0 +0100
+++ /var/tmp/diff_new_pack.2Heq57/_new  2011-12-06 18:37:37.0 +0100
@@ -20,7 +20,7 @@
 Url:http://freehg.org/u/bwalle/kdump/
 
 Name:   kdump
-License:GPL v2 or later
+License:GPL-2.0+
 Version:0.8.1
 Release:11
 Requires:   curl openssh makedumpfile

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



commit kdump for openSUSE:Factory

2011-06-07 Thread h_root

Hello community,

here is the log from the commit of package kdump for openSUSE:Factory
checked in at Tue Jun 7 10:49:40 CEST 2011.




--- kdump/kdump.changes 2009-01-23 16:48:05.0 +0100
+++ /mounts/work_src_done/STABLE/kdump/kdump.changes2011-06-05 
19:39:19.0 +0200
@@ -1,0 +2,11 @@
+Sun Jun  5 17:38:54 UTC 2011 - [email protected]
+
+- Fix build with gcc 4.6.
+
+---
+Wed Apr 27 19:55:30 CEST 2011 - [email protected]
+
+- Updated description to reference packages required for debugging
+  (bnc#690194).
+
+---

calling whatdependson for head-i586


New:

  kdump-fix-gcc46.diff



Other differences:
--
++ kdump.spec ++
--- /var/tmp/diff_new_pack.e323F4/_old  2011-06-07 10:48:56.0 +0200
+++ /var/tmp/diff_new_pack.e323F4/_new  2011-06-07 10:48:56.0 +0200
@@ -1,7 +1,7 @@
 #
-# spec file for package kdump (Version 0.8.1)
+# spec file for package kdump
 #
-# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -22,7 +22,7 @@
 Name:   kdump
 License:GPL v2 or later
 Version:0.8.1
-Release:1
+Release:11
 Requires:   curl openssh makedumpfile
 Summary:Script for kdump
 Group:  System/Kernel
@@ -36,6 +36,7 @@
 PreReq: %insserv_prereq %fillup_prereq mkinitrd
 Source: %{name}-%{version}.tar.bz2
 Source2:%{name}-%{version}-rpmlintrc
+Patch0: %{name}-fix-gcc46.diff
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 # rename "kdump-helpers" (10.3) -> "kdump" (11.0/SP2)
 Provides:   kdump-helpers = 0.2.4
@@ -50,7 +51,18 @@
 kdump is a package that includes several scripts for kdump, including
 the init script /etc/init.d/kdump and the configuration file for kdump.
 
+The kernel package and this package are all that are required for a
+crash dump to occur. However, if you wish to debug the crash dump
+yourself you will need several debugging packages installed for each
+kernel flavor and release you wish to debug.
+
+For example, if you are debugging kernel-default, you will need:
+- kernel-default-debuginfo
+- kernel-default-devel
+- kernel-default-devel-debuginfo
 
+These packages are not needed to create the dump and can be installed
+after a crash dump has occured.
 
 Authors:
 
@@ -58,6 +70,7 @@
 
 %prep
 %setup
+%patch0 -p1
 
 %build
 export CFLAGS="%optflags"

++ kdump-fix-gcc46.diff ++
Index: kdump-0.8.1/kdumptool/util.cc
===
--- kdump-0.8.1.orig/kdumptool/util.cc
+++ kdump-0.8.1/kdumptool/util.cc
@@ -24,6 +24,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 
 #include 





Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]