diskimage-builder/elements/install-static/install.d/10-install-static-files

16 lines
422 B
Text
Raw Normal View History

#!/bin/bash
# Note that this relies on the detail that all elements share one dir inside
# the chroot. This will copy all the files that elements have added to
# element/static into the image. Mode, symlinks etc will be respected.
if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail
STATIC_SOURCE="$(dirname $0)/../static"
[ -d "${STATIC_SOURCE}" ] || exit 0
rsync -lCr "${STATIC_SOURCE}"/ /