Locations of visitors to this page

Tuesday, May 12, 2009

unable to specify GMT timezone in kickstart in centos 5.3

unable to specify GMT timezone in kickstart in centos 5.3

安装centos/rhel 5.3时发现, 在kickstart文件中指定了系统时区
timezone --utc Etc/GMT
但是安装过程不能认出这个配置项, 仍然要人手工选择时区

这是一个已知的BUG
解决方法是, kickstart中指定一个可使用的时区, 然后再在%post修改为想要的时区, 比如:
...
timezone --utc America/New_York
...
%post
...
sed -i.orig '
/^ZONE=/c ZONE="Etc/GMT"
/^UTC=/c UTC=true
' /etc/sysconfig/clock
/usr/sbin/tzdata-update
...

该BUG还影响了其它一些时区, 描述见Why does Red Hat Enterprise Linux 5.3 prompt for a timezone when one is specified in the kickstart?

此BUG将在5.4版本被修复


另参见
Bug 461526 - Cannot set timezone
Bug 473647 - RFE: allow more timezones in kickstart
Bug 480226 - Anaconda not setting UTC or timezone from kickstart file.
Bug 481617 - RHEL 5.3 can't specify GMT timezone in kickstart
Bug 483094 - asking for GMT timezone in kickstart fails



-fin-

No comments:

Website Analytics

Followers