summaryrefslogtreecommitdiffstats
path: root/tasks/locales.task.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/locales.task.sh')
-rw-r--r--tasks/locales.task.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/tasks/locales.task.sh b/tasks/locales.task.sh
new file mode 100644
index 0000000..3afc19f
--- /dev/null
+++ b/tasks/locales.task.sh
@@ -0,0 +1,11 @@
+locales_require_bindmounts=1
+
+locales() {
+ local ME=locales
+ # fix locales
+ chroot-aptinstall locales > $BROOT_LOG.$ME 2>&1
+ sed -i -e "s,^#.*\(en_US.*\)$,\1," $BROOT_BUILDROOT_PATH/etc/locale.gen
+ chroot-exec locale-gen >> $BROOT_LOG.$ME 2>&1
+ lastline=$(tail -n 1 $BROOT_LOG.$ME)
+ echo " $lastline"
+}