From 253ae27eca1bb9b9aae96d8832e5f9e487fdc7df Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Sun, 16 Jun 2019 13:58:13 +0200 Subject: [PATCH] osbuild.py/tmpfs: mount with the right mode Mount tmpfs by default as 0755. This only really makes a differente when we copy the whole tree. Signed-off-by: Tom Gundersen --- osbuild.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osbuild.py b/osbuild.py index 3c8582cb..5a27edf7 100644 --- a/osbuild.py +++ b/osbuild.py @@ -29,7 +29,7 @@ class tmpfs: self.root = tempfile.mkdtemp(prefix="osbuild-tmpfs-", dir=path) self.mounted = False try: - subprocess.run(["mount", "-t", "tmpfs", "tmpfs", self.root], check=True) + subprocess.run(["mount", "-t", "tmpfs", "-o", "mode=0755", "tmpfs", self.root], check=True) self.mounted = True except subprocess.CalledProcessError: self.unmount()