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
bf6cc736
Commit
bf6cc736
authored
May 10, 2010
by
Daniel Lezcano
Committed by
Daniel Lezcano
May 10, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make dynamic busybox supported
Bind mount host library path. Weird but some distro provide busybox as a dynamically linked binary. Signed-off-by:
Daniel Lezcano
<
dlezcano@fr.ibm.com
>
parent
8208b295
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
17 deletions
+19
-17
lxc-busybox.in
scripts/lxc-busybox.in
+19
-17
No files found.
scripts/lxc-busybox.in
View file @
bf6cc736
...
...
@@ -39,7 +39,11 @@ $rootfs/tmp \
$rootfs
/var/log
\
$rootfs
/usr/share/udhcpc
\
$rootfs
/dev/pts
\
$rootfs
/dev/shm"
$rootfs
/dev/shm
\
$rootfs
/lib
\
$rootfs
/usr/lib
\
$rootfs
/lib64
\
$rootfs
/usr/lib64"
mkdir
-p
$tree
||
return
1
chmod
755
$tree
||
return
1
...
...
@@ -223,23 +227,21 @@ cat <<EOF >> $path/config
lxc.utsname =
$name
lxc.tty = 1
lxc.rootfs =
$rootfs
lxc.cgroup.devices.deny = a
# /dev/null and zero
lxc.cgroup.devices.allow = c 1:3 rwm
lxc.cgroup.devices.allow = c 1:5 rwm
# consoles
lxc.cgroup.devices.allow = c 5:1 rwm
lxc.cgroup.devices.allow = c 5:0 rwm
lxc.cgroup.devices.allow = c 4:0 rwm
lxc.cgroup.devices.allow = c 4:1 rwm
# /dev/{,u}random
lxc.cgroup.devices.allow = c 1:9 rwm
lxc.cgroup.devices.allow = c 1:8 rwm
lxc.cgroup.devices.allow = c 136:* rwm
lxc.cgroup.devices.allow = c 5:2 rwm
# rtc
lxc.cgroup.devices.allow = c 254:0 rwm
EOF
if
[
-d
"
$rootfs
/lib"
]
;
then
cat
<<
EOF
>>
$path
/config
lxc.mount.entry=/lib
$rootfs
/lib none ro,bind 0 0
lxc.mount.entry=/usr/lib
$rootfs
/usr/lib none ro,bind 0 0
EOF
fi
if
[
-d
"
$rootfs
/lib64"
]
;
then
cat
<<
EOF
>>
$path
/config
lxc.mount.entry=/lib64
$rootfs
/lib64 none ro,bind 0 0
lxc.mount.entry=/usr/lib64
$rootfs
/usr/lib64 none ro,bind 0 0
EOF
fi
}
usage
()
...
...
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