Let tzdata debconf values be automatically taken from /etc/timezone (Closes: #738118).
authorDaniel Baumann <mail@daniel-baumann.ch>
Sat, 8 Feb 2014 16:15:54 +0000 (17:15 +0100)
committerDaniel Baumann <mail@daniel-baumann.ch>
Sat, 8 Feb 2014 16:15:54 +0000 (17:15 +0100)
components/0070-tzdata

index ac6ad24..1bbc538 100755 (executable)
@@ -47,15 +47,7 @@ Config ()
        fi
 
        echo "${_AREA}/${_ZONE}" > /etc/timezone
-       cp -f /usr/share/zoneinfo/${_AREA}/${_ZONE} /etc/localtime
-
-cat > /tmp/live-config.cfg << EOF
-set tzdata/Areas ${_AREA}
-set tzdata/Zones/${_AREA} ${_ZONE}
-EOF
-
-       debconf-set-selections < /tmp/live-config.cfg
-       rm -f /tmp/live-config.cfg
+       dpkg-reconfigure -f noninteractive -p critical tzdata
 
        # Creating state file
        touch /var/lib/live/config/tzdata