summaryrefslogtreecommitdiffstats
path: root/meta-agl-ic-container/recipes-platform/images/agl-lxc-autostart.inc
blob: 41a925e337ba86177e57c6339f25e8cd57e8e51b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Integration type support for lxc autostart based startup.

IMAGE_INSTALL += " \
    ${LXC_CONTAINER_CONFIGS} \
    lxc-autostart \
"

LXC_CONTAINER_CONFIGS ?= ""

python __anonymous() {
    for c in (d.getVar('CONTAINER_IMAGES') or "").split():
        (mc, image) = c.split(':')

        # Assume there is a X-lxc-config package for guest-image-X
        config = image
        if config.startswith('guest-image-'):
            config = config[len('guest-image-'):]
        d.appendVar('LXC_CONTAINER_CONFIGS', ' ' + 'lxc-config-' + config)
}