From 3a012ec1d5d7f970c52022b7da5751449693640d Mon Sep 17 00:00:00 2001 From: Phil Wise Date: Fri, 27 Apr 2018 12:26:02 +0200 Subject: Fix permissions of /var/sota in image_types_ota We should also do this in the recipes --- classes/image_types_ota.bbclass | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classes/image_types_ota.bbclass b/classes/image_types_ota.bbclass index d21441d..36e7059 100644 --- a/classes/image_types_ota.bbclass +++ b/classes/image_types_ota.bbclass @@ -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 -- cgit v1.2.3-54-g00ecf