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:
parent
69286f4057
commit
6ad1a57317
|
|
@ -116,6 +116,7 @@ BOOTLOADER_SEEK_BOOTPART ?= "0"
|
||||||
# This is otherwise forced by systemd because of hard-coded paths
|
# This is otherwise forced by systemd because of hard-coded paths
|
||||||
# in systemd source code.
|
# in systemd source code.
|
||||||
ROOT_HOME ?= "/root"
|
ROOT_HOME ?= "/root"
|
||||||
|
CC_CONTAINER_PATH ?= "${ROOT_HOME}/cc-container"
|
||||||
|
|
||||||
# Default IMAGE_FSTYPES for eMMC/NAND
|
# Default IMAGE_FSTYPES for eMMC/NAND
|
||||||
IMAGE_FSTYPES ?= "${@ \
|
IMAGE_FSTYPES ?= "${@ \
|
||||||
|
|
|
||||||
|
|
@ -45,9 +45,7 @@ do_install:append() {
|
||||||
install -m 0644 ${S}/cc-container-mng.conf ${D}${sysconfdir}/cc-container-mng.conf
|
install -m 0644 ${S}/cc-container-mng.conf ${D}${sysconfdir}/cc-container-mng.conf
|
||||||
|
|
||||||
sed -i \
|
sed -i \
|
||||||
-e 's|"/var/lib/cc-container/cc-containers.conf"|"/mnt/data/cc-container/cc-containers.conf"|' \
|
-e "s|\"/opt/cc-container|\"${CC_CONTAINER_PATH}|g" \
|
||||||
-e 's|"/var/lib/cc-container/state.json"|"/mnt/data/cc-container/state.json"|' \
|
|
||||||
-e 's|"/var/lib/cc-container"|"/mnt/data/cc-container"|' \
|
|
||||||
${D}${sysconfdir}/cc-container-mng.conf
|
${D}${sysconfdir}/cc-container-mng.conf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
do_install:append() {
|
do_install:append() {
|
||||||
if [ -f ${D}${sysconfdir}/containers/storage.conf ]; then
|
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
|
${D}${sysconfdir}/containers/storage.conf
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue