#!/bin/sh # SPDX-License-Identifier: Apache-2.0 # SPDX-FileCopyrightText: Zygmunt Krynicki set -eu if ! touch /var/tmp/image-garden-canary 2>/dev/null; then # QEMU unconditionally rewrites /tmp to /var/tmp but snaps cannot access # that location with strict confinement. The path is still /tmp but does # not compare to /tmp exactly. export TMPDIR=/tmp/./ fi # Execute subsequent element of the command-chain. exec "$@"