From: Joerg Behrmann Date: Wed, 20 Apr 2022 17:53:36 +0000 (+0200) Subject: Make a relative symlink instead of an absolute one X-Git-Tag: v13~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33da0510df6f3c96a1000d6ddb264ea213d849e2;p=thirdparty%2Fmkosi.git Make a relative symlink instead of an absolute one THis should ensure, that we never link outside of the image. --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index e4a370924..3245e49cb 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -2840,7 +2840,7 @@ def install_debian_or_ubuntu(args: MkosiArgs, root: Path, *, do_run_build_script root.joinpath("etc/default/locale").unlink() except FileNotFoundError: pass - root.joinpath("etc/default/locale").symlink_to("/etc/locale.conf") + root.joinpath("etc/default/locale").symlink_to("../locale.conf") @complete_step("Installing Debian…")