Skip to content

Commit

Permalink
debian: configure default locale
Browse files Browse the repository at this point in the history
Closes #357
  • Loading branch information
sylirre committed Nov 20, 2023
1 parent 8bf88bc commit 7ad3013
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion distro-build/debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ bootstrap_distribution() {
--architectures=${arch} \
--variant=minbase \
--components="main,contrib" \
--include="ca-certificates" \
--include="ca-certificates,locales" \
--format=tar \
"${dist_version}" \
"${ROOTFS_DIR}/debian-$(translate_arch "$arch")-pd-${CURRENT_VERSION}.tar"
Expand All @@ -33,5 +33,12 @@ write_plugin() {
TARBALL_SHA256['i686']="$(sha256sum "${ROOTFS_DIR}/debian-i686-pd-${CURRENT_VERSION}.tar.xz" | awk '{ print $1}')"
TARBALL_URL['x86_64']="${GIT_RELEASE_URL}/debian-x86_64-pd-${CURRENT_VERSION}.tar.xz"
TARBALL_SHA256['x86_64']="$(sha256sum "${ROOTFS_DIR}/debian-x86_64-pd-${CURRENT_VERSION}.tar.xz" | awk '{ print $1}')"
distro_setup() {
${TAB}# Configure en_US.UTF-8 locale.
${TAB}run_proot_cmd sed -i -E 's/# (en_US.UTF-8)/\1/g' /etc/locale.gen
${TAB}run_proot_cmd DEBIAN_FRONTEND=noninteractive dpkg-reconfigure locales
}
EOF
}

0 comments on commit 7ad3013

Please sign in to comment.