summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorRaphaël Hertzog <hertzog@debian.org>2017-08-29 12:26:28 +0200
committerRaphaël Hertzog <hertzog@debian.org>2017-08-29 12:26:33 +0200
commit2fe6afe46008c50ef7d3a9b505ca5cf28c355f3c (patch)
tree08f3be845fe3f9f86d0c79404ecd590a0160fed5 /share
parentff71712590a809d0f7ba680e787a9f091ed853b2 (diff)
downloadvyos-live-build-2fe6afe46008c50ef7d3a9b505ca5cf28c355f3c.tar.gz
vyos-live-build-2fe6afe46008c50ef7d3a9b505ca5cf28c355f3c.zip
Initialize /etc/default/locale with LANG=C.UTF-8
That way we always have a valid UTF-8 locale even when we don't have the "locales" (or "locales-all") package installed.
Diffstat (limited to 'share')
-rwxr-xr-xshare/hooks/normal/0040-create-locales-files.hook.chroot2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/hooks/normal/0040-create-locales-files.hook.chroot b/share/hooks/normal/0040-create-locales-files.hook.chroot
index 8a5a8677c..cd240608a 100755
--- a/share/hooks/normal/0040-create-locales-files.hook.chroot
+++ b/share/hooks/normal/0040-create-locales-files.hook.chroot
@@ -4,4 +4,4 @@ set -e
# Create /etc/environment and /etc/default/locale
touch /etc/environment
-touch /etc/default/locale
+echo "LANG=C.UTF-8" >/etc/default/locale