Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
0079c6c0
Commit
0079c6c0
authored
Nov 13, 2009
by
Michel Normand
Committed by
Daniel Lezcano
Nov 13, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lxc lxc-sshd using new lxc.mount.entry keyword
Signed-off-by:
Michel Normand
<
michel_mno@laposte.net
>
Signed-off-by:
Daniel Lezcano
<
dlezcano@fr.ibm.com
>
parent
70dd1397
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
lxc-sshd.in
scripts/lxc-sshd.in
+6
-12
No files found.
scripts/lxc-sshd.in
View file @
0079c6c0
...
...
@@ -348,7 +348,6 @@ untar_tarball() {
NAME
=
"sshd"
CONFFILE
=
"lxc.conf"
MNTFILE
=
"mount.conf"
UTSNAME
=
IPV4
=
"172.20.0.20/24"
...
...
@@ -390,26 +389,21 @@ lxc.network.flags = up
lxc.network.link = br0
lxc.network.ipv4 =
$IPV4
lxc.network.name = eth0
lxc.mount =
$MNTFILE
lxc.rootfs =
$ROOTFS
EOF
cat
<<
EOF
>
$MNTFILE
/lib
$(
pwd
)
/
$ROOTFS
/lib none ro,bind 0 0
/bin
$(
pwd
)
/
$ROOTFS
/bin none ro,bind 0 0
/usr
$(
pwd
)
/
$ROOTFS
/usr none ro,bind 0 0
/sbin
$(
pwd
)
/
$ROOTFS
/sbin none ro,bind 0 0
lxc.mount.entry=/lib
$(
pwd
)
/
$ROOTFS
/lib none ro,bind 0 0
lxc.mount.entry=/bin
$(
pwd
)
/
$ROOTFS
/bin none ro,bind 0 0
lxc.mount.entry=/usr
$(
pwd
)
/
$ROOTFS
/usr none ro,bind 0 0
lxc.mount.entry=/sbin
$(
pwd
)
/
$ROOTFS
/sbin none ro,bind 0 0
EOF
if
[
"
$(
uname
-m
)
"
=
"x86_64"
]
;
then
cat
<<
EOF
>>
$
MNT
FILE
/lib64
$(
pwd
)
/
$ROOTFS
/lib64 none ro,bind 0 0
cat
<<
EOF
>>
$
CONF
FILE
lxc.mount.entry=
/lib64
$(
pwd
)
/
$ROOTFS
/lib64 none ro,bind 0 0
EOF
fi
@BINDIR@/lxc-create
-n
$NAME
-f
$CONFFILE
rm
-f
$MNTFILE
rm
-f
$CONFFILE
echo
"Done."
...
...
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