Red Hat Bugzilla – Bug 1289696
tzdata: Perform /etc/localtime updates
Last modified: 2016-04-28 14:59:40 EDT
To fix bug 1200555, we need to change the /etc/localtime update mechanism not to touch /etc/localtime if it s a symbolic link. This is difficult to implement within the existing statically-linked /usr/sbin/tzdata-update program.
With RHEL 6 RPM, it is possible to implement /etc/localtime updates with Lua interpreter built into RPM, including the symbolic link check. This means that the dependency issue which previously stopped us to include the /etc/localtime management in the tzdata package do not apply anymore, and we can perform the update in a %post scriptlet written in Lua.
We need tzdata packages with this change for testing the fix for bug 1200555, but there is no need to actually release these packages at the same time the fix for bug 1200555 goes out. The reason is that /etc/localtime needs to be updated only at tzdata update time.