Merge pull request #2245 from balena-os/fix-rsync-deltas

Fix support for rsync deltas
This commit is contained in:
flowzone-app[bot] 2024-02-27 15:05:36 +00:00 committed by GitHub
commit 716ca95e44
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,6 +15,19 @@ source ./mount-partitions.sh
[ -d "${ROOT_MOUNTPOINT}"/tmp/balena-supervisor ] || [ -d "${ROOT_MOUNTPOINT}"/tmp/balena-supervisor ] ||
mkdir -p "${ROOT_MOUNTPOINT}"/tmp/balena-supervisor mkdir -p "${ROOT_MOUNTPOINT}"/tmp/balena-supervisor
# If DOCKER_ROOT isn't set then default it
DOCKER_LIB_PATH="/var/lib/docker"
if [ -z "${DOCKER_ROOT}" ]; then
DOCKER_ROOT="${ROOT_MOUNTPOINT}${DOCKER_LIB_PATH}"
fi
# Mount the DOCKER_ROOT path equivalent in the container fs
# this is necessary as long as the supervisor still has support
# for rsync deltas
if [ ! -d "${DOCKER_LIB_PATH}" ]; then
ln -s "${DOCKER_ROOT}" "${DOCKER_LIB_PATH}"
fi
# Include self-signed CAs, should they exist # Include self-signed CAs, should they exist
if [ -n "${BALENA_ROOT_CA}" ]; then if [ -n "${BALENA_ROOT_CA}" ]; then
if [ ! -e '/etc/ssl/certs/balenaRootCA.pem' ]; then if [ ! -e '/etc/ssl/certs/balenaRootCA.pem' ]; then