summaryrefslogtreecommitdiff
path: root/examples/unschroot.py
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2025-06-27 21:04:36 +0200
committerHelmut Grohne <helmut@subdivi.de>2025-06-27 21:21:21 +0200
commit7d6895d7ca0fe472c64964793b12f8ea536decde (patch)
treed31834267c8f3ee72c27c1d5acb79ac16c774336 /examples/unschroot.py
parent7dbe52bb5cf303f4a51b58c9e2865d3ece3394bf (diff)
downloadpython-linuxnamespaces-7d6895d7ca0fe472c64964793b12f8ea536decde.tar.gz
mount syscall now accepts options as dict
Diffstat (limited to 'examples/unschroot.py')
-rwxr-xr-xexamples/unschroot.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/unschroot.py b/examples/unschroot.py
index 7da6e9a..43c4ea3 100755
--- a/examples/unschroot.py
+++ b/examples/unschroot.py
@@ -242,12 +242,12 @@ class DirectorySessionChroot(SessionChroot):
"overlay",
mnt,
"overlay",
- data=[
- "lowerdir=" + str(self.source.path),
- "upperdir=" + str(self.path / "upper"),
- "workdir=" + str(self.path / "work"),
- "userxattr",
- ],
+ data={
+ "lowerdir": str(self.source.path),
+ "upperdir": str(self.path / "upper"),
+ "workdir": str(self.path / "work"),
+ "userxattr": None,
+ },
)
return pathlib.Path(mnt)