classes: image_types_ostree: use locking during OSTree repo update
The OSTree repository might be shared accross several individual
OSTree builders. Use bitbakes lockfiles mechanism to lock the
OSTree for exclusive use.
@@ -7,6 +7,7 @@ do_image_ostree[depends] += "ostree-native:do_populate_sysroot \
virtual/kernel:do_deploy \
${INITRAMFS_IMAGE}:do_image_complete \
"
+do_image_ostree[lockfiles] += "${OSTREE_REPO}/ostree.lock"
export OSTREE_REPO
export OSTREE_BRANCHNAME
