diskimage-builder/elements/install-static/install.d/10-install-static-files
Gregory Haynes 162f60edf0 Add install-static element
This element currently exists in tripleo-image-elements but it is plenty
useful without tripleo.

Change-Id: I2415f53191773fafece485bdd3c706a2625a0a47
2015-02-05 15:47:05 -08:00

12 lines
367 B
Bash
Executable File

#!/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.
set -eux
set -o pipefail
STATIC_SOURCE="$(dirname $0)/../static"
[ -d "${STATIC_SOURCE}" ] || exit 0
rsync -lCr "${STATIC_SOURCE}"/ /