-# fai sets this an old way that doesn't work for stretch.
-# no harm in setting it universally here.
-# using debconf-set-selection, the area gets reset to ETC
-# on my linode test machine after doing a dpkg-reconfigure, or a reinstall,
-# so we are using expect :(
-# I got a random error when running this, so I added a sleep
-# rather than trying to write a whole detect and wait loop.
-# E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
-# E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
-sleep 1
-# todo: this is not idempotent, it fails when running twice, due to prepopulated values.
-# check into unsetting them using debconf-set-selection.
-s apt-get -y install --no-install-recommends expect
-s expect <<EOF ||:
-set force_conservative 0
-spawn dpkg-reconfigure tzdata -freadline
-expect -nocase timeout {exit 1} "Geographic area:"
-send "\02512\r"
-expect -nocase timeout {exit 1} "Time zone:"
-send "\0255\r"
-expect eof
-exit
-EOF
-