summaryrefslogtreecommitdiffstats
path: root/meta-agl-ic-container/classes/lxc-config.bbclass
diff options
context:
space:
mode:
authorNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>2024-12-01 15:30:31 +0900
committerNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>2024-12-01 16:05:56 +0900
commitc152bca6461c72d527af8f38545d8a0bc2324747 (patch)
treebe8e1b49899abf5b1c1bac777f9df109127cbca9 /meta-agl-ic-container/classes/lxc-config.bbclass
parent27116c59302f63f6f9e4a1fdf5c089092e987298 (diff)
Remove integration type without container manager from container integration
Existing container integration was supporing with container-manager and without container-manager integration. After the scarthgap update, systemd cgroup-v1 and v2 mixed support was disabled. It require to big rework in resource controle feature. The lxc only integration (without container-manager integration) has some limitation for device support. For example, it can't handle dynamic device/network interface change, it' can't protect device access from guest using mknod. On the other hand, if I mantain to this integration, it need many human resource. The lxc only integration does not have value for these work. This change drop lxc only integration. This strategy was discussed in gerrit 30506. Bug-AGL: SPEC-5283 Change-Id: I66b209cdf7fa6bf77439a24211de4da7dcdfa873 Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Diffstat (limited to 'meta-agl-ic-container/classes/lxc-config.bbclass')
-rw-r--r--meta-agl-ic-container/classes/lxc-config.bbclass58
1 files changed, 0 insertions, 58 deletions
diff --git a/meta-agl-ic-container/classes/lxc-config.bbclass b/meta-agl-ic-container/classes/lxc-config.bbclass
deleted file mode 100644
index 921aaf92..00000000
--- a/meta-agl-ic-container/classes/lxc-config.bbclass
+++ /dev/null
@@ -1,58 +0,0 @@
-# Helper class for installing LXC guest configuration.
-# Assumes that:
-# - Recipe name is 'lxc-config-' + <guest name>
-# - Corresponding files {config,system.conf}.<guest name>.in are in
-# the file search path
-# - That references to the DRM lease device name are parameterized
-# with @DRM_LEASE_DEVICE@ in the .in files
-# As well:
-# - The .in files can optionally use the @LXC_AUTO_START@ parameter
-# to pick up the value of the LXC_AUTO_START variable for use in
-# defining lxc.start.auto. The default value is "0", so recipes
-# need to assign the variable to "1" to have the associated
-# container start automatically.
-
-python __anonymous() {
- bpn = d.getVar('BPN')
- if not bpn.startswith('lxc-config-'):
- bb.error('Recipe name does not start with \'lxc-config-\'')
- config = bpn[11:]
- d.setVar('LXC_CONFIG_NAME', config)
- src_uri = 'file://basic.in' \
- + ' file://mount.in' \
- + ' file://network.in' \
- + ' file://environment.in' \
- + ' file://misc.in' \
- + ' file://system.conf.' + config + '.in'
- d.setVar('SRC_URI', src_uri)
-}
-
-S = "${WORKDIR}"
-
-inherit allarch
-
-DRM_LEASE_DEVICE ??= "card0-HDMI-A-1"
-
-DRM_LEASE_DEVICE:qemuall ?= "card0-Virtual-1"
-
-LXC_AUTO_START ??= "0"
-
-do_configure[noexec] = "1"
-do_compile[noexec] = "1"
-
-do_install () {
- rm -f ${WORKDIR}/config.${LXC_CONFIG_NAME}.in
- files="basic.in mount.in network.in environment.in misc.in"
- for f in ${files}; do
- cat ${WORKDIR}/$f >> ${WORKDIR}/config.${LXC_CONFIG_NAME}.in
- done
-
- install -m 0755 -d ${D}/var/lib/lxc/${LXC_CONFIG_NAME}
- for f in config.${LXC_CONFIG_NAME}.in system.conf.${LXC_CONFIG_NAME}.in; do
- sed -e 's|@DRM_LEASE_DEVICE@|${DRM_LEASE_DEVICE}|g' \
- -e 's|@LXC_AUTO_START@|${LXC_AUTO_START}|g' \
- ${WORKDIR}/$f > ${D}${localstatedir}/lib/lxc/${LXC_CONFIG_NAME}/${f%.${LXC_CONFIG_NAME}.in}
- done
-}
-
-FILES:${PN} = "${localstatedir}/lib/lxc/"