cc-container-mng: install config at /etc

There is no need to have a dedicated folder, as we only use a configuration
file. Other data is stored in a different path.

https://onedigi.atlassian.net/browse/DEL-10035

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
This commit is contained in:
Isaac Hermida 2026-04-16 19:03:20 +02:00
parent 6d29433642
commit 61dc4c88cf
3 changed files with 7 additions and 7 deletions

View File

@ -41,20 +41,20 @@ do_install:append() {
install -m 0644 ${WORKDIR}/cc-containerd.service ${D}${systemd_system_unitdir}/cc-containerd.service
install -m 0644 ${WORKDIR}/cc-containerd-shutdown.service ${D}${systemd_system_unitdir}/cc-containerd-shutdown.service
install -d ${D}${sysconfdir}/cc-container
install -m 0644 ${S}/cc-container-mng.conf ${D}${sysconfdir}/cc-container/cc-container-mng.conf
install -d ${D}${sysconfdir}
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"|' \
${D}${sysconfdir}/cc-container/cc-container-mng.conf
${D}${sysconfdir}/cc-container-mng.conf
}
FILES:${PN}:append = " \
${systemd_system_unitdir}/cc-containerd.service \
${systemd_system_unitdir}/cc-containerd-shutdown.service \
${sysconfdir}/cc-container/cc-container-mng.conf \
${sysconfdir}/cc-container-mng.conf \
"
CONFFILES:${PN} += "${sysconfdir}/cc-container/cc-container-mng.conf"
CONFFILES:${PN} += "${sysconfdir}/cc-container-mng.conf"

View File

@ -5,7 +5,7 @@ Before=shutdown.target reboot.target halt.target poweroff.target kexec.target
[Service]
Type=oneshot
ExecStart=/usr/bin/cc-containerd --config-file /etc/cc-container/cc-container-mng.conf --stop-managed-containers
ExecStart=/usr/bin/cc-containerd --config-file /etc/cc-container-mng.conf --stop-managed-containers
RemainAfterExit=yes
[Install]

View File

@ -5,7 +5,7 @@ Wants=network.target
[Service]
Type=simple
ExecStart=/usr/bin/cc-containerd --config-file /etc/cc-container/cc-container-mng.conf
ExecStart=/usr/bin/cc-containerd --config-file /etc/cc-container-mng.conf
# Stop only the daemon process; keep managed containers running.
KillMode=process
Restart=on-failure