HomeSoftware Heritage

Fix /etc/localtime to be an actual symlink

Description

Fix /etc/localtime to be an actual symlink

With the existing code, the /etc/localtime file was created as a hard
link but what is needed by timedatectl is a symlink.

With this patch, /etc/localtime will be created as a symbolic link to
point to /usr/share/zoneinfo/$timezone.
It was tested in a real environment and I was able to configure the
timezone to Japan area, it worked well.

Details

Provenance
Emilien Macchi <emilien@redhat.com>Authored on Oct 2 2018, 4:55 PM
olasdPushed on Jun 26 2019, 2:00 PM
Parents
rSPTZ841bd52f2332: new release v5.0.2 as v5.0.1 was buggy
Branches
Unknown
Tags
Unknown

Event Timeline

Emilien Macchi <emilien@redhat.com> committed rSPTZdef4819d9555: Fix /etc/localtime to be an actual symlink (authored by Emilien Macchi <emilien@redhat.com>).Oct 2 2018, 4:57 PM