Ensure /etc/timezone also includes the TIMEZONE setting
authorMichael Prokop <mika@grml.org>
Wed, 25 Jul 2018 16:34:28 +0000 (18:34 +0200)
committerMichael Prokop <mika@grml.org>
Sun, 29 Jul 2018 11:53:01 +0000 (13:53 +0200)
commit3eede4fdddffb2484f2387f3c6547f0a22d0f80c
tree772e1cd162ef1cb99765491f4a1c376c679bf785
parentb8f3c830f22b6a2cc74cf94166864d87c03c5f65
Ensure /etc/timezone also includes the TIMEZONE setting

Quoting from the bug report:

| The timezone is currently setup in chroot-script:timezone(), but
| that function only sets up /etc/localtime but not /etc/timezone.
| The problem is that you end up with one set to Europe/Vienna and
| the other set to Etc/UTC.
|
| This can greatly confuse the system, due to some libraries/tools
| parsing the former, and other the latter.
|
| So that function should probably also update /etc/timezone, with
| the TIMEZONE value.

So write the $TIMEZONE setting to /etc/timezone.

Closes: #904607
Thanks: Guillem Jover <gjover@sipwise.com>
chroot-script
config
travis/goss.yaml