summaryrefslogtreecommitdiff
path: root/osi-mk.d/utf8.sh
diff options
context:
space:
mode:
Diffstat (limited to 'osi-mk.d/utf8.sh')
-rw-r--r--osi-mk.d/utf8.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/osi-mk.d/utf8.sh b/osi-mk.d/utf8.sh
new file mode 100644
index 0000000..8d125c4
--- /dev/null
+++ b/osi-mk.d/utf8.sh
@@ -0,0 +1,12 @@
+#!/hint/bash -euE
+# Copyright (C) 2018 Luke Shumaker
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
+post_install+=(10:utf8:post_install)
+utf8:post_install() {
+ local arg_mountpoint=$1
+
+ echo en_US.UTF-8 UTF-8 >"${arg_mountpoint}/etc/locale.gen"
+ echo LANG=en_US.UTF-8 >"${arg_mountpoint}/etc/locale.conf"
+ arch-chroot -- "$arg_mountpoint" locale-gen
+}