summaryrefslogtreecommitdiffstats
path: root/config/chroot_local-hooks/99-etc-default-locale
blob: 465e0ce0a576f2e74278fa0f1eee02f02b193919 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -e

echo "Creating /etc/default/locale"

# /etc/default/locale is not a conffile. It is unowned, but primarily managed
# by the "locales" package's maintainer scripts. We purge that package
# in 98-remove_unwanted_packages (because we use locales-all instead),
# thus /etc/default/locale is removed. Various scripts of ours depend on this
# file to exist and contain a valid $LANG value.
#
# Tails Greeter's PostLogin script will later change this value according to
# the user's choice.

echo 'LANG=en_US.UTF-8' > /etc/default/locale