summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStuart Yoder <stuart.yoder@freescale.com>2012-09-13 00:26:29 +0000
committerMatthew McClintock <msm@freescale.com>2012-09-12 13:29:26 -0500
commit4b87939778089eb15729225fa8e1ffd156713ccf (patch)
treedbff727287df3dd2cc42fba59c8bc8b5883c1e93
parenta51ea005adab98afd5320a836957fad9364ef51b (diff)
downloadmeta-fsl-ppc-4b87939778089eb15729225fa8e1ffd156713ccf.tar.gz
meta-fsl-ppc: lxc: add patch to fix 64-bit lib mount issue
Signed-off-by: Stuart Yoder <stuart.yoder@freescale.com>
-rw-r--r--recipes-tools/lxc/libmounts.patch48
-rw-r--r--recipes-tools/lxc/lxc_0.8.0-rc1.bb2
2 files changed, 50 insertions, 0 deletions
diff --git a/recipes-tools/lxc/libmounts.patch b/recipes-tools/lxc/libmounts.patch
new file mode 100644
index 0000000..7e092f1
--- /dev/null
+++ b/recipes-tools/lxc/libmounts.patch
@@ -0,0 +1,48 @@
1From dfef62f0334c65397254215f809a8f25364ea6ef Mon Sep 17 00:00:00 2001
2From: Stuart Yoder <stuart.yoder@freescale.com>
3Date: Wed, 12 Sep 2012 11:05:07 -0500
4Subject: [PATCH] create lib mounts only if the host directories exist
5
6Signed-off-by: Stuart Yoder <stuart.yoder@freescale.com>
7---
8 templates/lxc-busybox.in | 24 +++++++++++-------------
9 1 file changed, 11 insertions(+), 13 deletions(-)
10
11diff --git a/templates/lxc-busybox.in b/templates/lxc-busybox.in
12index 720ceef..f6cb1ba 100644
13--- a/templates/lxc-busybox.in
14+++ b/templates/lxc-busybox.in
15@@ -235,19 +235,17 @@ lxc.pts = 1
16 lxc.rootfs = $rootfs
17 EOF
18
19-if [ -d "$rootfs/lib" ]; then
20-cat <<EOF >> $path/config
21-lxc.mount.entry=/lib $rootfs/lib none ro,bind 0 0
22-lxc.mount.entry=/usr/lib $rootfs/usr/lib none ro,bind 0 0
23-EOF
24-fi
25-
26-if [ -d "/lib64" ] && [ -d "$rootfs/lib64" ]; then
27-cat <<EOF >> $path/config
28-lxc.mount.entry=/lib64 $rootfs/lib64 none ro,bind 0 0
29-lxc.mount.entry=/usr/lib64 $rootfs/usr/lib64 none ro,bind 0 0
30-EOF
31-fi
32+ libdirs="\
33+ /lib \
34+ /usr/lib \
35+ /lib64 \
36+ /usr/lib64"
37+
38+ for dir in $libdirs; do
39+ if [ -d $dir ]; then
40+ echo "lxc.mount.entry=$dir $rootfs$dir none ro,bind 0 0" >> $path/config
41+ fi
42+ done
43 }
44
45 usage()
46--
471.7.9.7
48
diff --git a/recipes-tools/lxc/lxc_0.8.0-rc1.bb b/recipes-tools/lxc/lxc_0.8.0-rc1.bb
index d5e145f..51a34f4 100644
--- a/recipes-tools/lxc/lxc_0.8.0-rc1.bb
+++ b/recipes-tools/lxc/lxc_0.8.0-rc1.bb
@@ -3,6 +3,7 @@ SECTION = "console/utils"
3LICENSE = "GPLv2" 3LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24" 4LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24"
5PRIORITY = "optional" 5PRIORITY = "optional"
6PR = "r1"
6DEPENDS = "libxml2 libcap" 7DEPENDS = "libxml2 libcap"
7RDEPENDS_${PN} = " \ 8RDEPENDS_${PN} = " \
8 rsync \ 9 rsync \
@@ -20,6 +21,7 @@ RDEPENDS_${PN} = " \
20 21
21SRC_URI = "http://lxc.sourceforge.net/download/lxc/${PN}-${PV}.tar.gz \ 22SRC_URI = "http://lxc.sourceforge.net/download/lxc/${PN}-${PV}.tar.gz \
22 file://noldconfig.patch \ 23 file://noldconfig.patch \
24 file://libmounts.patch \
23 " 25 "
24 26
25SRC_URI[md5sum] ="06ceecf4dbe1be988fc903ad8dd34d29" 27SRC_URI[md5sum] ="06ceecf4dbe1be988fc903ad8dd34d29"