Fix permissions of /var/sota in image_types_ota
We should also do this in the recipes
@@ -105,6 +105,8 @@ IMAGE_CMD_otaimg () {
mv ${HOME_TMP}/var/local ${PHYS_SYSROOT}/ostree/deploy/${OSTREE_OSNAME}/var/ || true
# Create /var/sota if it doesn't exist yet
mkdir -p ${PHYS_SYSROOT}/ostree/deploy/${OSTREE_OSNAME}/var/sota || true
+ # Ensure the permissions are correctly set
+ chmod 700 ${PHYS_SYSROOT}/ostree/deploy/${OSTREE_OSNAME}/var/sota
mv ${HOME_TMP}/usr/homedirs/home ${PHYS_SYSROOT}/ || true
# Ensure that /var/local exists (AGL symlinks /usr/local to /var/local)
install -d ${PHYS_SYSROOT}/ostree/deploy/${OSTREE_OSNAME}/var/local
