From c022cbba23cc5383c795b7699b295f28bdb6a3f5 Mon Sep 17 00:00:00 2001 From: mpabi Date: Mon, 11 May 2026 23:41:59 +0200 Subject: [PATCH] Mount host identity files in tmux containers --- rvctl.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rvctl.py b/rvctl.py index bc50725..292ad3d 100755 --- a/rvctl.py +++ b/rvctl.py @@ -3441,6 +3441,9 @@ def build_container_command( "-v", 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"] if shell_rcfile.is_file(): compose_args.extend(["-v", f"{shell_rcfile}:/tmp/rv-shell.bashrc:ro"])