diskimage-builder/elements/package-installs/extra-data.d/11-create-package-installs-dir
Gregory Haynes e5b8656141 Add new package-installs system
We currently support package-installs definitions which has some
limitations and oddities. This new format requires only one definition
which does not reside in our run-parts directories and follows a
consistent naming scheme (package-installs.yaml).

Change-Id: Ie51a7c4fdc15634ae8e069728e5e07cc1dc36095
2014-12-01 21:29:47 -08:00

15 lines
361 B
Bash
Executable File

#!/bin/bash
set -eux
set -o pipefail
dest_dir="$TMP_MOUNT_PATH/usr/share/package-installs/"
sudo mkdir -p $dest_dir
for ELEMENT in $IMAGE_ELEMENT ; do
for DIR in ${ELEMENTS_PATH//:/ }; do
if [ -f "$DIR/$ELEMENT/package-installs.yaml" ]; then
sudo cp $DIR/$ELEMENT/package-installs.yaml $dest_dir/$ELEMENT.yaml
fi
done
done