2013-12-10 16:11:52 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2014-04-03 02:24:15 +00:00
|
|
|
set -eu
|
|
|
|
set -o pipefail
|
2013-12-10 16:11:52 +00:00
|
|
|
|
|
|
|
[ -n "$TARGET_ROOT" ]
|
|
|
|
|
|
|
|
ZYPPER_CACHE_DIR=~/.cache/image-create/zypper
|
|
|
|
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
|