From: Daan De Meyer Date: Wed, 13 Apr 2022 09:08:03 +0000 (+0200) Subject: ubuntu/debian: Set up locale correctly on Debian/Ubuntu X-Git-Tag: v13~50^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58d0118cb205615c796fab25d6c0d7dff9bb2bbf;p=thirdparty%2Fmkosi.git ubuntu/debian: Set up locale correctly on Debian/Ubuntu Let's make sure we configure the locale. Also, some programs expect /etc/default/locale to exist on Ubuntu/Debian so let's create a symlink from there to /etc/locale.conf as well. --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 3e343e471..552d13532 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -2817,6 +2817,9 @@ def install_debian_or_ubuntu(args: MkosiArgs, root: Path, *, do_run_build_script for kver, kimg in gen_kernel_images(args, root): run_workspace_command(args, root, ["kernel-install", "add", kver, Path("/") / kimg]) + root.joinpath("etc/locale.conf").write_text("LANG=C.UTF-8\n") + root.joinpath("etc/default/locale").symlink_to("/etc/locale.conf") + @complete_step("Installing Debian…") def install_debian(args: MkosiArgs, root: Path, do_run_build_script: bool) -> None: