Mount host identity files in tmux containers

This commit is contained in:
mpabi
2026-05-11 23:41:59 +02:00
parent 5cc912d191
commit c022cbba23
+3
View File
@@ -3441,6 +3441,9 @@ def build_container_command(
"-v", "-v",
f"{card_path_text}:{card_path_text}", f"{card_path_text}:{card_path_text}",
] ]
for identity_file in ["/etc/passwd", "/etc/group"]:
if Path(identity_file).is_file():
compose_args.extend(["-v", f"{identity_file}:{identity_file}:ro"])
shell_args = [service, "shell"] shell_args = [service, "shell"]
if shell_rcfile.is_file(): if shell_rcfile.is_file():
compose_args.extend(["-v", f"{shell_rcfile}:/tmp/rv-shell.bashrc:ro"]) compose_args.extend(["-v", f"{shell_rcfile}:/tmp/rv-shell.bashrc:ro"])