In this process containers will be generated using "lxc-container-generator" recipe which will use corresponding .xml files to generate containers. Here all dependencies(such as required binaries,libraries,script files) will be provided in each container .XML file.
For permissions of files we also maintain separate "add-users-groups-file-owners-and-permissions.inc" file.
While doing rootfs this lxc-container-generator-native component will generate containers in /container path of rootfs.
Each container will consists of corresponding script (.sh) file for launching that particular container.
Here every process will be launched from corresponding component service file. Single (or) multiple processes can be launched/attached to container.
XML and conf files: All required XML and configuration files are placed along with lxc-container-generator recipe in meta-rdk-bsp-emulator layer. Service files:
In platformcontrol container: As we are running three processes we need three service files for launching these processes inside container. Three services are
Three services are
sysmgr.service
irmgr.service
dsmgr.service
In rmfstreamer container: As we are launching rmfstreamer process we need rmfstreamer.service
Note: All these service files are overridden in corresponding receipe .bbappend files based on distro feature "lxc-secure-containers" .
For exmaple sysmgr.service,irmgr.service and dsmgr.service files are overridden in iarmmgrs_git.bbappend file in meta-rdk-bsp-emulator.
rmfstreamer.service file overridden in rmfstreamer_git.bbappend in meta-rdk-bsp-emulator.