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
ea39e0c2
Commit
ea39e0c2
authored
Nov 30, 2008
by
dlezcano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
6b96cf76
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
lxc-sshd.in
scripts/lxc-sshd.in
+6
-6
No files found.
scripts/lxc-sshd.in
View file @
ea39e0c2
...
...
@@ -348,8 +348,8 @@ untar_tarball() {
NAME
=
"sshd"
CONFFILE
=
"lxc.conf"
FSTABFILE
=
"fstab
"
UTSNAME
=
"virtsshd"
MNTFILE
=
"mount.conf
"
UTSNAME
=
IPV4
=
"172.20.0.20/24"
create
()
{
...
...
@@ -390,11 +390,11 @@ lxc.network.flags = up
lxc.network.link = br0
lxc.network.ipv4 =
$IPV4
lxc.network.name = eth0
lxc.mount =
$
FSTAB
FILE
lxc.mount =
$
MNT
FILE
lxc.rootfs =
$ROOTFS
EOF
cat
<<
EOF
>
$
FSTAB
FILE
cat
<<
EOF
>
$
MNT
FILE
/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
...
...
@@ -402,14 +402,14 @@ cat <<EOF > $FSTABFILE
EOF
if
[
"
$(
arch
)
"
=
"x86_64"
]
;
then
cat
<<
EOF
>>
$
FSTAB
FILE
cat
<<
EOF
>>
$
MNT
FILE
/lib64
$(
pwd
)
/
$ROOTFS
/lib64 none ro,bind 0 0
EOF
fi
lxc-create
-n
$NAME
-f
$CONFFILE
rm
-f
$
FSTAB
FILE
rm
-f
$
MNT
FILE
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