diff options
author | Markos Chandras <mchandras@suse.de> | 2018-03-08 11:39:42 +0000 |
---|---|---|
committer | Markos Chandras <mchandras@suse.de> | 2018-03-08 12:24:02 +0000 |
commit | 20b01a6b7163971201a5aa0d6db354d80657d17f (patch) | |
tree | 43b4c80749ffa9e2f02064573af5974a8a8448ac /bifrost/scripts | |
parent | e66847184999a84c472648e78d71e12b7c5b23d2 (diff) |
bifrost: Ensure OS images are present in the PXE directory
The XCI deployment script may wipe the PXE directories so we need
to place the OS images after this has happened so we don't download them
every time.
Change-Id: Iccf943bc75592e7f5dddea59dfee14b2b080e7ef
Signed-off-by: Markos Chandras <mchandras@suse.de>
Diffstat (limited to 'bifrost/scripts')
-rwxr-xr-x | bifrost/scripts/bifrost-provision.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bifrost/scripts/bifrost-provision.sh b/bifrost/scripts/bifrost-provision.sh index 5ebe2031..dccb3231 100755 --- a/bifrost/scripts/bifrost-provision.sh +++ b/bifrost/scripts/bifrost-provision.sh @@ -77,6 +77,12 @@ export DIB_OS_PACKAGES=${DIB_OS_PACKAGES:-"vlan,vim,less,bridge-utils,language-p # Additional dib elements export EXTRA_DIB_ELEMENTS=${EXTRA_DIB_ELEMENTS:-"openssh-server"} +# Copy the OS images if found +if [[ -e ${XCI_PATH}/deployment_image.qcow2 ]]; then + sudo mkdir -p /httpboot + sudo mv ${XCI_PATH}/deployment_image.qcow2* /httpboot/ +fi + if [ ${USE_VENV} = "true" ]; then export VENV=/opt/stack/bifrost $SCRIPT_HOME/env-setup.sh &>/dev/null |