2013-12-10 16:11:52 +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-12-10 16:11:52 +00:00
|
|
|
|
|
|
|
[ -n "$TARGET_ROOT" ]
|
|
|
|
|
2014-10-05 20:55:34 +00:00
|
|
|
ZYPPER_CACHE_DIR=$DIB_IMAGE_CACHE/zypper
|
2013-12-10 16:11:52 +00:00
|
|
|
mkdir -p $ZYPPER_CACHE_DIR
|
|
|
|
|
2014-06-24 23:28:50 +00:00
|
|
|
sudo mkdir -p $TMP_MOUNT_PATH/var/cache/zypp
|
2013-12-10 16:11:52 +00:00
|
|
|
sudo mount --bind $ZYPPER_CACHE_DIR $TMP_MOUNT_PATH/var/cache/zypp
|