X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=chroot-script;fp=chroot-script;h=4a20fa7c9ecc818cd62747c3d76f1f017db2e621;hp=766a59d8eb9aed15ecc9701b82087c130b701ca7;hb=3eede4fdddffb2484f2387f3c6547f0a22d0f80c;hpb=b8f3c830f22b6a2cc74cf94166864d87c03c5f65 diff --git a/chroot-script b/chroot-script index 766a59d..4a20fa7 100755 --- a/chroot-script +++ b/chroot-script @@ -465,8 +465,12 @@ default_locales() { # adjust timezone {{{ timezone() { if [ -n "$TIMEZONE" ] ; then - echo "Adjusting /etc/localtime" - ln -sf "/usr/share/zoneinfo/$TIMEZONE" /etc/localtime + echo "Adjusting /etc/localtime" + ln -sf "/usr/share/zoneinfo/$TIMEZONE" /etc/localtime + + echo "Setting /etc/timezone to $TIMEZONE" + printf '%s\n' "$TIMEZONE" > /etc/timezone + fi } # }}}