From 120b118cdf2db5df173c7af46def47a03f71d109 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Thu, 26 Jul 2018 16:03:13 +0200 Subject: [PATCH] TT#41500 Run dpkg-reconfigure tzdata to workaround a bug in grml-debootstrap Currently grml-debootstrap only sets /etc/localtime, but not /etc/timezone, so this confuses the system with libraries/tools that read the former and others the latter. Reconfigure tzdata so that it can get both files into a consistent state. Change-Id: Id34c1a088809fbac19957a750c31fb8f3ceda893 (cherry picked from commit d5df0c0f84ebb04219dadf1862b0a629bac16b99) (cherry picked from commit 33d5cc6587cc14f88194481a9be14db5f29f1060) --- templates/scripts/includes/deployment.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/scripts/includes/deployment.sh b/templates/scripts/includes/deployment.sh index 6187984..9593520 100755 --- a/templates/scripts/includes/deployment.sh +++ b/templates/scripts/includes/deployment.sh @@ -1288,6 +1288,9 @@ save EOT fi +# TT#41500: Make sure the timezone setup is coherent +grml-chroot "$TARGET" dpkg-reconfigure --frontend=noninteractive tzdata + # provide useable swap partition echo "Enabling swap partition $SWAP_PARTITION via /etc/fstab" cat >> "${TARGET}/etc/fstab" << EOF