Rework images to support some integration types
[AGL/meta-agl-devel.git] / meta-agl-ic-container / recipes-platform / images / agl-lxc-autostart.inc
1 # Integration type support for lxc autostart based startup.
2
3 IMAGE_INSTALL += " \
4     ${LXC_CONTAINER_CONFIGS} \
5     lxc-autostart \
6 "
7
8 LXC_CONTAINER_CONFIGS ?= ""
9
10 python __anonymous() {
11     for c in (d.getVar('CONTAINER_IMAGES') or "").split():
12         (mc, image) = c.split(':')
13
14         # Assume there is a X-lxc-config package for guest-image-X
15         config = image
16         if config.startswith('guest-image-'):
17             config = config[len('guest-image-'):]
18         d.appendVar('LXC_CONTAINER_CONFIGS', ' ' + 'lxc-config-' + config)
19 }