]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-busybox: check when bind-mounting host libdirs
authorBogdan Purcareata <bogdan.purcareata@freescale.com>
Wed, 15 May 2013 09:08:14 +0000 (12:08 +0300)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 15 May 2013 17:26:23 +0000 (12:26 -0500)
The patch removes the behavior of automatically mounting /lib
and /usr/lib, since this is duplicated a few lines below. It will
also remove the risk of failing when one of these entries are not
present on the host - e.g. on a 64bit machine.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
templates/lxc-busybox.in

index 81e9566c573ac6c9ff395f647af5262263a14837..db39b0e6206a3048c083bfff989d42e0f517b3ca 100644 (file)
@@ -267,13 +267,6 @@ lxc.cap.drop = sys_module mac_admin mac_override sys_time
 #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
-
     libdirs="\
         lib \
         usr/lib \