2014-05-01 16:13:47 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -eux
|
|
|
|
set -o pipefail
|
|
|
|
|
|
|
|
sudo mkdir -p $TMP_MOUNT_PATH/usr/share/pkg-map/
|
|
|
|
|
|
|
|
for ELEMENT in $IMAGE_ELEMENT ; do
|
|
|
|
for DIR in ${ELEMENTS_PATH//:/ }; do
|
|
|
|
if [ -f "$DIR/$ELEMENT/pkg-map" ]; then
|
2014-10-22 15:24:04 +00:00
|
|
|
sudo cp "$DIR/$ELEMENT/pkg-map" "$TMP_MOUNT_PATH/usr/share/pkg-map/$ELEMENT"
|
2014-05-01 16:13:47 +00:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
done
|