diff options
| author | Stuart Yoder <stuart.yoder@freescale.com> | 2012-09-13 00:26:29 +0000 |
|---|---|---|
| committer | Matthew McClintock <msm@freescale.com> | 2012-09-12 13:29:26 -0500 |
| commit | 4b87939778089eb15729225fa8e1ffd156713ccf (patch) | |
| tree | dbff727287df3dd2cc42fba59c8bc8b5883c1e93 | |
| parent | a51ea005adab98afd5320a836957fad9364ef51b (diff) | |
| download | meta-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.patch | 48 | ||||
| -rw-r--r-- | recipes-tools/lxc/lxc_0.8.0-rc1.bb | 2 |
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 @@ | |||
| 1 | From dfef62f0334c65397254215f809a8f25364ea6ef Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Stuart Yoder <stuart.yoder@freescale.com> | ||
| 3 | Date: Wed, 12 Sep 2012 11:05:07 -0500 | ||
| 4 | Subject: [PATCH] create lib mounts only if the host directories exist | ||
| 5 | |||
| 6 | Signed-off-by: Stuart Yoder <stuart.yoder@freescale.com> | ||
| 7 | --- | ||
| 8 | templates/lxc-busybox.in | 24 +++++++++++------------- | ||
| 9 | 1 file changed, 11 insertions(+), 13 deletions(-) | ||
| 10 | |||
| 11 | diff --git a/templates/lxc-busybox.in b/templates/lxc-busybox.in | ||
| 12 | index 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 | -- | ||
| 47 | 1.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" | |||
| 3 | LICENSE = "GPLv2" | 3 | LICENSE = "GPLv2" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24" | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=fbc093901857fcd118f065f900982c24" |
| 5 | PRIORITY = "optional" | 5 | PRIORITY = "optional" |
| 6 | PR = "r1" | ||
| 6 | DEPENDS = "libxml2 libcap" | 7 | DEPENDS = "libxml2 libcap" |
| 7 | RDEPENDS_${PN} = " \ | 8 | RDEPENDS_${PN} = " \ |
| 8 | rsync \ | 9 | rsync \ |
| @@ -20,6 +21,7 @@ RDEPENDS_${PN} = " \ | |||
| 20 | 21 | ||
| 21 | SRC_URI = "http://lxc.sourceforge.net/download/lxc/${PN}-${PV}.tar.gz \ | 22 | SRC_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 | ||
| 25 | SRC_URI[md5sum] ="06ceecf4dbe1be988fc903ad8dd34d29" | 27 | SRC_URI[md5sum] ="06ceecf4dbe1be988fc903ad8dd34d29" |
