From: Daan De Meyer Date: Mon, 8 Jul 2024 07:28:46 +0000 (+0200) Subject: Resolve source path in mount_base_trees() X-Git-Tag: v24~50^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8951077890114f2b7613d557d5e86d3f4beee2c;p=thirdparty%2Fmkosi.git Resolve source path in mount_base_trees() We want to check the extension on the resolved path, not on any symlinks, so let's make sure we resolve the path first. --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 793fb4343..3817a0935 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -102,6 +102,8 @@ def mount_base_trees(context: Context) -> Iterator[None]: for path in context.config.base_trees: d = context.workspace / f"bases/{path.name}-{uuid.uuid4().hex}" + path = path.resolve() + if path.is_dir(): bases += [path] elif can_extract_tar(path):