From 3d5a9debb5b7f0efac7b5d1f14700de0c8cac488 Mon Sep 17 00:00:00 2001 From: Serge Hallyn Date: Tue, 31 Jul 2012 16:01:28 +0200 Subject: [PATCH] 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 --- templates/lxc-busybox.in | 5 +++++ 1 file changed, 5 insertions(+) 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