From: Daan De Meyer Date: Tue, 2 Jul 2024 09:26:38 +0000 (+0200) Subject: Resolve source symlink in install_tree() X-Git-Tag: v24~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2237fe7a0b05b8ec6f6e0e967ac5da0cc5d698b4;p=thirdparty%2Fmkosi.git Resolve source symlink in install_tree() We do a bunch of checks on file extension and such, and those should be done on the resolved filename and not on a symlink. --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 82f79cabf..d1f9dda1d 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -1558,6 +1558,8 @@ def install_tree( target: Optional[Path] = None, preserve: bool = True, ) -> None: + src = src.resolve() + t = dst if target: t = dst / target.relative_to("/")