e5b8656141
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
15 lines
361 B
Bash
Executable File
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
|