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 <teg@jklm.no>
This commit is contained in:
Tom Gundersen 2019-06-16 13:58:13 +02:00
parent 92f3af94f6
commit 253ae27eca

View file

@ -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()