diff --git a/kdump-always-copy-timezone.patch b/kdump-always-copy-timezone.patch new file mode 100644 index 0000000..b4a68db --- /dev/null +++ b/kdump-always-copy-timezone.patch @@ -0,0 +1,27 @@ +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 + } diff --git a/kdump.changes b/kdump.changes index ebfc1c0..d1316dd 100644 --- a/kdump.changes +++ b/kdump.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Mar 13 15:48:28 UTC 2018 - ptesarik@suse.com + +- kdump-always-copy-timezone.patch: Always copy timezone data into + kdumprd (bsc#1081646). + ------------------------------------------------------------------- Tue Feb 27 10:26:57 UTC 2018 - ptesarik@suse.com diff --git a/kdump.spec b/kdump.spec index 58f67e9..3efb1fb 100644 --- a/kdump.spec +++ b/kdump.spec @@ -90,6 +90,7 @@ 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 +Patch44: %{name}-always-copy-timezone.patch BuildRequires: asciidoc BuildRequires: cmake BuildRequires: gcc-c++ @@ -195,6 +196,7 @@ cp %{S:1} tests/data/ %patch41 -p1 %patch42 -p1 %patch43 -p1 +%patch44 -p1 %build export CFLAGS="%{optflags}"