Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 6d914f39 authored by Robert Nelson's avatar Robert Nelson
Browse files

chroot: take care of locale for both ubuntu/debian


Signed-off-by: default avatarRobert Nelson <robertcnelson@gmail.com>
parent 5db22a9e
No related merge requests found
...@@ -322,8 +322,14 @@ cat > ${DIR}/chroot_script.sh <<-__EOF__ ...@@ -322,8 +322,14 @@ cat > ${DIR}/chroot_script.sh <<-__EOF__
} }
set_locale () { set_locale () {
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen if [ -f /etc/locale.gen ] ; then
locale-gen #Debian:
sed -i -e 's:# en_US.UTF-8 UTF-8:en_US.UTF-8 UTF-8:g' /etc/locale.gen
locale-gen
else
#Ubuntu:
locale-gen en_US.UTF-8
fi
echo "LANG=en_US.UTF-8" > /etc/default/locale echo "LANG=en_US.UTF-8" > /etc/default/locale
} }
......
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