From 7499d6ce015cdbd238aff2a3024e5535ece5a444 Mon Sep 17 00:00:00 2001 From: Josep Puigdemont Date: Mon, 10 Feb 2014 14:09:06 +0100 Subject: lxc: always strdup lxc.rootfs.mount The reason is that the generic code which handles reading lxc.rootfs.mount always frees the old value if not NULL. So without this setting lxc.rootfs.mount = /mnt causes segfault. This is a backport for lxc-0.9.0 (dora) of the same fix found in upstream's master, see commits 54c30e29 and 53f3f048. Signed-off-by: Josep Puigdemont Signed-off-by: Bruce Ashfield --- recipes-containers/lxc/lxc_0.9.0.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes-containers/lxc/lxc_0.9.0.bb b/recipes-containers/lxc/lxc_0.9.0.bb index cbe3f7a1..e1de3c73 100644 --- a/recipes-containers/lxc/lxc_0.9.0.bb +++ b/recipes-containers/lxc/lxc_0.9.0.bb @@ -26,6 +26,7 @@ SRC_URI = "http://linuxcontainers.org/downloads/${BPN}-${PV}.tar.gz \ file://lxc-0.9.0-enable-chroot-chpasswd-functionality-for-busybox-hosts.patch \ file://lxc-0.9.0-check-when-bind-mounting-libdirs.patch \ file://lxc-0.9.0-don-t-let-LXC_PATH-end-in-failure.patch \ + file://lxc-0.9.0-always-strdup-rootfs-mount.patch \ file://lxc-0.9.0-setup_netdev-re-read-ifindex-in-LXC_NET_PHYS-case.patch \ file://lxc-0.9.0-use-susv3-head-arguments.patch \ file://lxc-0.9.0-configure-allow-subdir-objects.patch \ -- cgit v1.2.3-54-g00ecf