#!/bin/sh # # This is an example script that sets the timezone to a given default, # or to the one of the host is none is configured. if [ -r confdata/timezone ]; then TZ=`cat "confdata/timezone"` else TZ=`realpath --relative-to /usr/share/zoneinfo /etc/localtime` fi chroot $TARGET ln -sf /usr/share/zoneinfo/${TZ} /etc/localtime chroot $TARGET dpkg-reconfigure --frontend noninteractive tzdata