Commit 9ac962df authored by Guido Gunther's avatar Guido Gunther

Make sure we have a proper locale

This ensures we have proper /etc/default/locale used by e.g. PAM.
parent b3f0b970
......@@ -91,6 +91,7 @@ packages="
firmware-ti-connectivity
flatpak
libnss-systemd
locales
lvm2
usbutils
${gui_packages}
......
......@@ -177,6 +177,13 @@ function setup_sshd()
}
function setup_locale()
{
echo "en_US.UTF-8 UTF-8" > "${basedir}/etc/locale.gen"
chroot "${basedir}" dpkg-reconfigure locales
}
# We have to do this because task packages don't work with debootstrap
# (and won't). See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=841649
# other packages are better installed late to not confuse deboostrap about
......@@ -262,6 +269,7 @@ prepare_chroot
setup_qemu
setup_apt
install_pkgs
setup_locale
setup_gui
setup_journal
setup_sshd
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment