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:
parent
92f3af94f6
commit
253ae27eca
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue