Fix agl IC demo is not show both screen
[AGL/meta-agl-devel.git] / meta-agl-ic-container / recipes-platform / images / agl-lxc-install-single-image.inc
1 # Integration type support for install guest root filesystem into host image.
2
3 require recipes-platform/images/agl-lxc-multiconfig-build.inc
4
5 # Handle modification of IMAGE_LINK_NAME done by ULCB builds with Kingfisher support
6 MACHINE_SUFFIX = "${@bb.utils.contains('AGL_FEATURES', 'kingfisher', '-kf', '', d)}"
7
8 install_container_images() {
9     for c in ${CONTAINER_IMAGES}; do
10         config=${c%:*}
11         image=${c#*:}
12         name=${image#guest-image-}
13         rm -rf  ${IMAGE_ROOTFS}/var/lib/machines/${name}
14         install -m 0755 -d ${IMAGE_ROOTFS}/var/lib/machines/${name}
15         src="${TOPDIR}/tmp-${config}/deploy/images/${MACHINE}/${image}-${MACHINE}${MACHINE_SUFFIX}.tar.bz2"
16         bbnote "Installing ${src}"
17         tar -C ${IMAGE_ROOTFS}/var/lib/machines/${name} -xf ${src}
18     done
19 }
20
21 ROOTFS_POSTPROCESS_COMMAND += "install_container_images; "