]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Copy /etc/group into the sandbox tree instead of passwd
authorJörg Behrmann <behrmann@physik.fu-berlin.de>
Thu, 20 Feb 2025 17:34:21 +0000 (18:34 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 20 Feb 2025 17:54:03 +0000 (18:54 +0100)
mkosi/__init__.py

index 1c2b265f34f29ce35701bf0de8c648d240eab41b..9c52fcc25b400aa0925eabf9f75bf6848fa05065 100644 (file)
@@ -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")