Skip to content

Commit

Permalink
tzdata: Make /etc/localtime a symbolic link
Browse files Browse the repository at this point in the history
systemd-timedated wants this to be a symbolic link, cf. man 5 localtime.

> The /etc/localtime file configures the system-wide timezone of the
> local system that is used by applications for presentation to the
> user. It should be an absolute or relative symbolic link pointing to
> /usr/share/zoneinfo/, followed by a timezone identifier such as
> "Europe/Berlin" or "Etc/UTC". The resulting link should lead to the
> corresponding binary tzfile(5) timezone data for the configured
> timezone.
>
> Because the timezone identifier is extracted from the symlink target
> name of /etc/localtime, this file may not be a normal file or
> hardlink.
  • Loading branch information
pmenzel committed Mar 16, 2018
1 parent 61dda69 commit c975b13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tzdata.be0
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ mee_install() {
zic -d ${D}/${DATADIR}/zoneinfo -p America/New_York

mkdir -pv ${D}${SYSCONFDIR}
cp ${D}${DATADIR}/zoneinfo/${MYTIMEZONE} ${D}${SYSCONFDIR}/localtime
ln -s ${D}${DATADIR}/zoneinfo/${MYTIMEZONE} ${D}${SYSCONFDIR}/localtime
}

0 comments on commit c975b13

Please sign in to comment.