SHA256
1
0
forked from pool/kdump
kdump/kdump-always-copy-timezone.patch
2018-03-13 16:03:30 +00:00

28 lines
875 B
Diff

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
}