From cd0ada6b19b03bda74fcb81316aa104e0d1bbac6 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Tue, 7 May 2024 09:54:59 +0200 Subject: mount: allow data argument to be a list --- examples/chrootfuse.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/chrootfuse.py b/examples/chrootfuse.py index 55a394e..ef67e8a 100755 --- a/examples/chrootfuse.py +++ b/examples/chrootfuse.py @@ -71,7 +71,13 @@ def main() -> None: linuxnamespaces.MountFlags.RDONLY if readonly else linuxnamespaces.MountFlags.NONE, - "fd=%d,rootmode=040755,user_id=0,group_id=0,allow_other" % fusefd, + [ + "fd=%d" % fusefd, + "rootmode=040755", + "user_id=0", + "group_id=0", + "allow_other", + ], ) os.chdir("/mnt") linuxnamespaces.bind_mount("/proc", "proc", recursive=True) -- cgit v1.2.3