]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Make a relative symlink instead of an absolute one
authorJoerg Behrmann <behrmann@physik.fu-berlin.de>
Wed, 20 Apr 2022 17:53:36 +0000 (19:53 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 22 Apr 2022 09:12:29 +0000 (11:12 +0200)
THis should ensure, that we never link outside of the image.

mkosi/__init__.py

index e4a37092497651c5f0af270e1b2bc06320fac311..3245e49cb8e00c86f7e45f955bd741f7cee99484 100644 (file)
@@ -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…")