Skip to content

Commit

Permalink
ubuntu: configure default locale
Browse files Browse the repository at this point in the history
  • Loading branch information
sylirre committed Nov 20, 2023
1 parent 7ad3013 commit 0f1f89e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion distro-build/ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ bootstrap_distribution() {
--architectures=${arch} \
--variant=apt \
--components="main,universe,multiverse" \
--include="passwd" \
--include="locales,passwd" \
--format=tar \
"${dist_version}" \
"${ROOTFS_DIR}/ubuntu-$(translate_arch "$arch")-pd-${CURRENT_VERSION}.tar"
Expand All @@ -31,5 +31,11 @@ write_plugin() {
TARBALL_SHA256['arm']="$(sha256sum "${ROOTFS_DIR}/ubuntu-arm-pd-${CURRENT_VERSION}.tar.xz" | awk '{ print $1}')"
TARBALL_URL['x86_64']="${GIT_RELEASE_URL}/ubuntu-x86_64-pd-${CURRENT_VERSION}.tar.xz"
TARBALL_SHA256['x86_64']="$(sha256sum "${ROOTFS_DIR}/ubuntu-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 0f1f89e

Please sign in to comment.