2013-07-31 13:37:57 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2014-09-04 04:56:29 +00:00
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
|
|
set -x
|
|
|
|
fi
|
2014-04-03 02:24:15 +00:00
|
|
|
set -eu
|
|
|
|
set -o pipefail
|
2013-07-31 13:37:57 +00:00
|
|
|
|
2013-12-10 16:24:03 +00:00
|
|
|
[ -n "$TARGET_ROOT" ]
|
2013-07-31 13:37:57 +00:00
|
|
|
|
2014-10-05 20:55:34 +00:00
|
|
|
YUM_CACHE_DIR=$DIB_IMAGE_CACHE/yum
|
2013-07-31 13:37:57 +00:00
|
|
|
mkdir -p $YUM_CACHE_DIR
|
|
|
|
|
|
|
|
sudo mkdir -p $TMP_MOUNT_PATH/tmp/yum
|
|
|
|
sudo mount --bind $YUM_CACHE_DIR $TMP_MOUNT_PATH/tmp/yum
|