Forum | Documentation | Website | Blog

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

bug: perl/apt-get set an initial/default locale en_US.UTF-8


Signed-off-by: default avatarRobert Nelson <robertcnelson@gmail.com>
parent 135afe36
No related merge requests found
...@@ -263,7 +263,7 @@ chroot_COPY_SETUP_SDCARD="enable" ...@@ -263,7 +263,7 @@ chroot_COPY_SETUP_SDCARD="enable"
dpkg_arch="armhf" dpkg_arch="armhf"
#DEFAULT_RELEASES="quantal raring saucy wheezy jessie" #DEFAULT_RELEASES="quantal raring saucy wheezy jessie"
DEFAULT_RELEASES="quantal raring wheezy jessie" DEFAULT_RELEASES="wheezy jessie"
for REL in ${RELEASES:-$DEFAULT_RELEASES} ; do for REL in ${RELEASES:-$DEFAULT_RELEASES} ; do
${REL}_release ${REL}_release
done done
......
...@@ -312,13 +312,19 @@ cat > ${DIR}/chroot_script.sh <<-__EOF__ ...@@ -312,13 +312,19 @@ cat > ${DIR}/chroot_script.sh <<-__EOF__
install_pkgs () { install_pkgs () {
#These packages have binaries needed by this script. #These packages have binaries needed by this script.
packages="initramfs-tools git-core sudo u-boot-tools wget" packages="initramfs-tools locales git-core sudo u-boot-tools wget"
for pkg in \${packages} ; do check_n_install ; done for pkg in \${packages} ; do check_n_install ; done
#Install the user choosen list. #Install the user choosen list.
apt-get -y --force-yes install ${base_pkg_list} apt-get -y --force-yes install ${base_pkg_list}
} }
set_locale () {
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
locale-gen
echo "LANG=en_US.UTF-8" > /etc/default/locale
}
dl_pkg_src () { dl_pkg_src () {
mkdir -p /tmp/pkg_src/ mkdir -p /tmp/pkg_src/
cd /tmp/pkg_src/ cd /tmp/pkg_src/
...@@ -472,6 +478,7 @@ cat > ${DIR}/chroot_script.sh <<-__EOF__ ...@@ -472,6 +478,7 @@ cat > ${DIR}/chroot_script.sh <<-__EOF__
install_pkg_updates install_pkg_updates
install_pkgs install_pkgs
set_locale
if [ "x${chroot_ENABLE_DEB_SRC}" = "xenable" ] ; then if [ "x${chroot_ENABLE_DEB_SRC}" = "xenable" ] ; then
dl_pkg_src dl_pkg_src
......
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