diff options
| -rw-r--r-- | recipes-containers/lxc/lxc_0.9.0.bb | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/recipes-containers/lxc/lxc_0.9.0.bb b/recipes-containers/lxc/lxc_0.9.0.bb index 30316bb2..563131f5 100644 --- a/recipes-containers/lxc/lxc_0.9.0.bb +++ b/recipes-containers/lxc/lxc_0.9.0.bb | |||
| @@ -3,7 +3,7 @@ SECTION = "console/utils" | |||
| 3 | LICENSE = "GPLv2" | 3 | LICENSE = "GPLv2" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" |
| 5 | PRIORITY = "optional" | 5 | PRIORITY = "optional" |
| 6 | PR = "r2" | 6 | PR = "r3" |
| 7 | DEPENDS = "libxml2 libcap" | 7 | DEPENDS = "libxml2 libcap" |
| 8 | RDEPENDS_${PN} = " \ | 8 | RDEPENDS_${PN} = " \ |
| 9 | rsync \ | 9 | rsync \ |
| @@ -47,3 +47,19 @@ FILES_${PN}-doc = "${mandir} ${infodir}" | |||
| 47 | # For LXC the docdir only contains example configuration files and should be included in the lxc package | 47 | # For LXC the docdir only contains example configuration files and should be included in the lxc package |
| 48 | FILES_${PN} += "${docdir}" | 48 | FILES_${PN} += "${docdir}" |
| 49 | FILES_${PN}-dbg += "${libexecdir}/lxc/.debug" | 49 | FILES_${PN}-dbg += "${libexecdir}/lxc/.debug" |
| 50 | |||
| 51 | do_install_append() { | ||
| 52 | # The /var/cache/lxc directory created by the Makefile | ||
| 53 | # is wiped out in volatile, we need to create this at boot. | ||
| 54 | rm -rf ${D}${localstatedir}/cache | ||
| 55 | install -d ${D}${sysconfdir}/default/volatiles | ||
| 56 | echo "d root root 0755 ${localstatedir}/cache/lxc none" \ | ||
| 57 | > ${D}${sysconfdir}/default/volatiles/99_lxc | ||
| 58 | |||
| 59 | } | ||
| 60 | |||
| 61 | pkg_postinst_${PN}() { | ||
| 62 | if [ -z "$D" ] && [ -e /etc/init.d/populate-volatile.sh ] ; then | ||
| 63 | /etc/init.d/populate-volatile.sh update | ||
| 64 | fi | ||
| 65 | } | ||
