From: Jörg Behrmann Date: Thu, 20 Feb 2025 17:34:21 +0000 (+0100) Subject: Copy /etc/group into the sandbox tree instead of passwd X-Git-Tag: v26~362 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a863e01374c5ce2b49a05bcce3c8b3080abeb7a;p=thirdparty%2Fmkosi.git Copy /etc/group into the sandbox tree instead of passwd --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 1c2b265f3..9c52fcc25 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -1132,7 +1132,7 @@ def install_sandbox_trees(config: Config, dst: Path) -> None: if Path("/etc/passwd").exists(): shutil.copy("/etc/passwd", dst / "etc/passwd") if Path("/etc/group").exists(): - shutil.copy("/etc/passwd", dst / "etc/group") + shutil.copy("/etc/group", dst / "etc/group") if not (dst / "etc/mtab").is_symlink(): (dst / "etc/mtab").symlink_to("../proc/self/mounts")