meta-digi-containers: use /mnt/data/cc-container as storage path
For podman, configure the storage path modifying its config file. For LXC, the install path is automatically managed by the daemon. https://onedigi.atlassian.net/browse/DEL-9996 https://onedigi.atlassian.net/browse/DEL-10005 Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
This commit is contained in:
parent
0f54b5a346
commit
c4c0383ed6
|
|
@ -41,6 +41,12 @@ do_install:append() {
|
|||
|
||||
install -d ${D}${sysconfdir}/cc-container
|
||||
install -m 0644 ${S}/cc-container-mng.conf ${D}${sysconfdir}/cc-container/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
|
||||
}
|
||||
|
||||
FILES:${PN}:append = " \
|
||||
|
|
|
|||
|
|
@ -0,0 +1,6 @@
|
|||
do_install:append() {
|
||||
if [ -f ${D}${sysconfdir}/containers/storage.conf ]; then
|
||||
sed -i 's|^graphroot = ".*"|graphroot = "/mnt/data/cc-container/storage"|' \
|
||||
${D}${sysconfdir}/containers/storage.conf
|
||||
fi
|
||||
}
|
||||
Loading…
Reference in New Issue