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
6bc424b5
Commit
6bc424b5
authored
Sep 12, 2012
by
Stuart Yoder
Committed by
Stéphane Graber
Oct 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
busybox: for all lib dirs create mounts only if directories exist
Signed-off-by:
Stuart Yoder
<
stuart.yoder@freescale.com
>
parent
d595c68a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
18 deletions
+11
-18
lxc-busybox.in
templates/lxc-busybox.in
+11
-18
No files found.
templates/lxc-busybox.in
View file @
6bc424b5
...
...
@@ -238,24 +238,17 @@ lxc.rootfs = $rootfs
#lxc.aa_profile = unconfined
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
"/lib64"
]
&&
[
-d
"
$rootfs
/lib64"
]
;
then
cat
<<
EOF
>>
$path
/config
lxc.mount.entry=/lib64
$rootfs
/lib64 none ro,bind 0 0
EOF
fi
if
[
-d
"/usr/lib64"
]
&&
[
-d
"
$rootfs
/usr/lib64"
]
;
then
cat
<<
EOF
>>
$path
/config
lxc.mount.entry=/usr/lib64
$rootfs
/usr/lib64 none ro,bind 0 0
EOF
fi
libdirs
=
"
\
/lib
\
/usr/lib
\
/lib64
\
/usr/lib64"
for
dir
in
$libdirs
;
do
if
[
-d
$dir
]
&&
[
-d
"
$rootfs$dir
"
]
;
then
echo
"lxc.mount.entry=
$dir
$rootfs$dir
none ro,bind 0 0"
>>
$path
/config
fi
done
}
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