152
152
printf 'LANG="%s"\n' "$locale" >> /root/etc/default/locale
153
153
printf 'LANG="%s"\n' "$locale" >> /root/etc/environment
154
154
chroot /root /usr/sbin/locale-gen "$locale" || true
157
161
zone="$(get_debconf "time/zone")"
158
162
echo "$zone" > /root/etc/timezone
160
164
cp -f /root/usr/share/zoneinfo/$zone /root/etc/localtime
161
165
# We skip setting the clock via NTP for now. It's time consuming, unlikely to
162
166
# work given the lack of networking in the initramfs :), and the clock being