#!/bin/sh
set -e

. /usr/share/debconf/confmodule

db_get time/zone
zone="$RET"
echo "$zone" > /target/etc/timezone
rm -f /target/etc/localtime
ln -sf "/usr/share/zoneinfo/$zone" /target/etc/localtime
