Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapns
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapns
Commits
a150da84
Commit
a150da84
authored
Oct 23, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Setup /run
Else screen complains: Cannot make directory '/run/screen': No such file or directory
parent
dbe4f01e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
slapns.py
slapns.py
+4
-2
No files found.
slapns.py
View file @
a150da84
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment