From: Serge Hallyn Date: Tue, 31 Jul 2012 14:01:28 +0000 (+0200) Subject: lxc-busybox.in: check separately that /usr/lib64 exists X-Git-Tag: lxc-0.8.0~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d5a9debb5b7f0efac7b5d1f14700de0c8cac488;p=thirdparty%2Flxc.git lxc-busybox.in: check separately that /usr/lib64 exists It's possible for only one of /lib64 and /usr/lib64 to exist, so adding both fstab entries can cause the busybox container to fail to start. Signed-off-by: Serge Hallyn Signed-off-by: Daniel Lezcano --- diff --git a/templates/lxc-busybox.in b/templates/lxc-busybox.in index 720ceef64..ef356dbfd 100644 --- a/templates/lxc-busybox.in +++ b/templates/lxc-busybox.in @@ -245,6 +245,11 @@ fi if [ -d "/lib64" ] && [ -d "$rootfs/lib64" ]; then cat <> $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 <> $path/config lxc.mount.entry=/usr/lib64 $rootfs/usr/lib64 none ro,bind 0 0 EOF fi