Commit a150da84 authored by Kirill Smelkov's avatar Kirill Smelkov

Setup /run

Else screen complains:

	Cannot make directory '/run/screen': No such file or directory
parent dbe4f01e
......@@ -140,9 +140,10 @@ def main():
slappart = sys.argv[1]
# create directories inside container
dirv = ["/proc", "/sys", "/tmp",
dirv = ["/proc", "/sys",
"/bin", "/sbin", "/lib", "/lib64", "/usr/bin", "/usr/lib",
"/etc",
"/tmp", "/run",
]
for _ in dirv:
mkdir_p(slappart + _)
......@@ -203,8 +204,9 @@ def main():
writefile("/proc/self/gid_map", "0 %d 1" % gid)
# mount new tmpfs
# mount new tmpfs'es
mount("none", slappart + "/tmp", "tmpfs")
mount("none", slappart + "/run", "tmpfs")
# read-only bind mount bin, lib, ... from SR
# FIXME stub: here we bind from base system for now
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment