PDA

View Full Version : Preseed installation with UTC timezone



swajime
September 27th, 2016, 03:20 PM
Hi,

I have the following in my preseed file:


# grep -i UTC preseed.cfg
d-i time/zone select UTC
tzsetup-udeb time/zone select UTC
tzsetup-udeb tzsetup/country/US select UTC
# Controls whether or not the hardware clock is set to UTC.
d-i clock-setup/utc boolean true

However, the new system generated by the preseed has a New York timezone:


# cat /etc/timezone
America/New_York


# tail /var/log/messages
2016-09-27 10:15:02.931 acu kernel: perf interrupt took too long (2523 > 2500), lowering kernel.perf_event_max_sample_rate to 50000
root@acmu:~# date -u
Tue Sep 27 14:15:52 UTC 2016

I need to have the system installed using the UTC time zone. What do I need to do to the preseed file to accomplish this?

Thanks in advance,


John

swajime
September 27th, 2016, 07:27 PM
Update: Tried replacing UTC with GMT ... same result:


# egrep -i '(utc|gmt)' preseed-VBox.cfg
d-i time/zone string GMT
tzsetup-udeb time/zone select GMT
tzsetup-udeb tzsetup/country/US select GMT
# Controls whether or not the hardware clock is set to UTC.
d-i clock-setup/utc-auto boolean true
d-i clock-setup/utc boolean true


# tail /var/log/messages
2016-09-27 14:21:00.803 acu kernel: [ 116.287106] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
# date -u
Tue Sep 27 18:23:11 UTC 2016

swajime
September 27th, 2016, 08:37 PM
I found the culprit ... d-i time/zone was entered twice in my preseed, the second entry was set to US/Eastern. *sigh* Thanks for reading...