File kdump-always-copy-timezone.patch of Package kdump.21349

From: Petr Tesarik <ptesarik@suse.com>
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 <ptesarik@suse.com>
---
 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
 }
openSUSE Build Service is sponsored by