c9a6aef9f4
The yum element provides for specific customizations for yum based distros. The included customization is a yum cache mounted outside of the chroot so that yum downloaded packages are reused on subsequent image builds. Change-Id: I6833c9fdbc83cb09debec6a789082e105c917800
11 lines
203 B
Bash
Executable file
11 lines
203 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
[ -n "TARGET_ROOT" ]
|
|
|
|
YUM_CACHE_DIR=~/.cache/image-create/yum
|
|
mkdir -p $YUM_CACHE_DIR
|
|
|
|
sudo mkdir -p $TMP_MOUNT_PATH/tmp/yum
|
|
sudo mount --bind $YUM_CACHE_DIR $TMP_MOUNT_PATH/tmp/yum
|