2014-05-01 16:13:47 +00:00
|
|
|
#!/bin/bash
|
2014-09-04 04:56:29 +00:00
|
|
|
|
|
|
|
if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then
|
|
|
|
set -x
|
|
|
|
fi
|
|
|
|
set -eu
|
2014-05-01 16:13:47 +00:00
|
|
|
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
|