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
8b7681f3
Unverified
Commit
8b7681f3
authored
Jun 20, 2018
by
Thomas Hipp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
templates: Fix busybox template
Use `busybox --list`, and exclude the `busybox` applet if necessary. Signed-off-by:
Thomas Hipp
<
thomas.hipp@canonical.com
>
parent
d2ff3f89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
lxc-busybox.in
templates/lxc-busybox.in
+2
-4
No files found.
templates/lxc-busybox.in
View file @
8b7681f3
...
...
@@ -187,9 +187,7 @@ configure_busybox()
# but that only works right in a chroot with busybox >= 1.19.0
(
cd
"
${
rootfs
}
/bin"
||
return
1
./busybox
--help
|
grep
'Currently defined functions:'
-A300
|
\
grep
-v
'Currently defined functions:'
|
tr
,
'\n'
|
\
xargs
-n1
ln
-s
busybox
./busybox
--list
|
grep
-v
busybox | xargs
-n1
ln
-s
busybox
)
# relink /sbin/init
...
...
@@ -232,7 +230,7 @@ EOF
usr/lib
\
lib64
\
usr/lib64"
for
dir
in
${
libdirs
}
;
do
if
[
-d
"/
${
dir
}
"
]
&&
[
-d
"
${
rootfs
}
/
${
dir
}
"
]
;
then
echo
"lxc.mount.entry = /
${
dir
}
${
dir
}
none ro,bind 0 0"
>>
"
${
path
}
/config"
...
...
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