cc-containerd: use "/root/container" as default containers path

Currently only the CCMP25 and CC95 will officially support containers.
For these platforms, "/root" is a common path with enough free space.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
This commit is contained in:
Isaac Hermida 2026-04-21 09:26:48 +02:00
parent 69286f4057
commit 6ad1a57317
3 changed files with 3 additions and 4 deletions

View File

@ -116,6 +116,7 @@ BOOTLOADER_SEEK_BOOTPART ?= "0"
# This is otherwise forced by systemd because of hard-coded paths
# in systemd source code.
ROOT_HOME ?= "/root"
CC_CONTAINER_PATH ?= "${ROOT_HOME}/cc-container"
# Default IMAGE_FSTYPES for eMMC/NAND
IMAGE_FSTYPES ?= "${@ \

View File

@ -45,9 +45,7 @@ do_install:append() {
install -m 0644 ${S}/cc-container-mng.conf ${D}${sysconfdir}/cc-container-mng.conf
sed -i \
-e 's|"/var/lib/cc-container/cc-containers.conf"|"/mnt/data/cc-container/cc-containers.conf"|' \
-e 's|"/var/lib/cc-container/state.json"|"/mnt/data/cc-container/state.json"|' \
-e 's|"/var/lib/cc-container"|"/mnt/data/cc-container"|' \
-e "s|\"/opt/cc-container|\"${CC_CONTAINER_PATH}|g" \
${D}${sysconfdir}/cc-container-mng.conf
}

View File

@ -1,6 +1,6 @@
do_install:append() {
if [ -f ${D}${sysconfdir}/containers/storage.conf ]; then
sed -i 's|^graphroot = ".*"|graphroot = "/mnt/data/cc-container/storage"|' \
sed -i 's|^graphroot = ".*"|graphroot = "${CC_CONTAINER_PATH}/storage"|' \
${D}${sysconfdir}/containers/storage.conf
fi
}