remove pike from mirror path name

StarlingX has moved beyond the OpenStack pike release and will
be following master and the latest release, so don't include
OpenStack release names.

This also removes the r1 reference from the download directory
path.

Story: 2006835
Task: 37410
Change-Id: I0c548e9c97f2fb162394d0c381f02a40072e7400
Signed-off-by: Saul Wold <sgw@linux.intel.com>
This commit is contained in:
Saul Wold 2019-10-03 12:52:19 -07:00 committed by Scott Little
parent e390e85bd5
commit 3a26e8510f
8 changed files with 23 additions and 13 deletions

View File

@ -124,9 +124,9 @@ is complete, the following message appears:
step #3: done successfully
IMPORTANT: The following 3 files are just bootstrap versions. Based on them, the workable images
for StarlingX could be generated by running "update-pxe-network-installer" command after "build-iso"
- out/stx-r1/CentOS/pike/Binary/LiveOS/squashfs.img
- out/stx-r1/CentOS/pike/Binary/images/pxeboot/initrd.img
- out/stx-r1/CentOS/pike/Binary/images/pxeboot/vmlinuz
- out/stx/CentOS/Binary/LiveOS/squashfs.img
- out/stx/CentOS/Binary/images/pxeboot/initrd.img
- out/stx/CentOS/Binary/images/pxeboot/vmlinuz
Verify packages
~~~~~~~~~~~~~~~
@ -153,7 +153,7 @@ After all downloads are complete, copy the downloaded files to mirror.
$ find ./output -name "*.i686.rpm" | xargs rm -f
$ chown 751:751 -R ./output
$ cp -rf output/stx-r1/ <your_mirror_folder>/
$ cp -rf output/stx/ <your_mirror_folder>/
In this case, ``<your_mirror_folder>`` can be whatever folder you want to
use as mirror.
@ -302,7 +302,7 @@ links if this is the first build or the mirror has been updated.
.. code-block:: bash
generate-cgcs-centos-repo.sh /import/mirrors/CentOS/pike
generate-cgcs-centos-repo.sh /import/mirrors/CentOS
Where the argument to the script is the path of the mirror.

View File

@ -50,7 +50,7 @@ LOCALDISK=${HOST_PREFIX}/${GUEST_LOCALDISK}
# Release Variable
export MY_RELEASE=${MY_RELEASE:-3.0}
export MY_RELEASE=${MY_RELEASE:-4.0}
# Default branch to build
export BRANCH=${BRANCH:-intel_r0}

View File

@ -178,7 +178,7 @@ timestamp=$(date +%F_%H%M)
echo $timestamp
export DL_MIRROR_LOG_DIR="${DL_MIRROR_LOG_DIR:-./logs}"
export DL_MIRROR_OUTPUT_DIR="${DL_MIRROR_OUTPUT_DIR:-./output/stx-r1/CentOS/pike}"
export DL_MIRROR_OUTPUT_DIR="${DL_MIRROR_OUTPUT_DIR:-./output/stx/CentOS}"
dl_dir="$(readlink -f ${DL_MIRROR_OUTPUT_DIR})/layer_repos/${lower_layer}/${build_type}"

View File

@ -160,7 +160,7 @@ timestamp=$(date +%F_%H%M)
echo $timestamp
export DL_MIRROR_LOG_DIR="${DL_MIRROR_LOG_DIR:-./logs}"
export DL_MIRROR_OUTPUT_DIR="${DL_MIRROR_OUTPUT_DIR:-./output/stx-r1/CentOS/pike}"
export DL_MIRROR_OUTPUT_DIR="${DL_MIRROR_OUTPUT_DIR:-./output/stx/CentOS/}"
MDIR_SRC="${DL_MIRROR_OUTPUT_DIR}/Source"
mkdir -p "$MDIR_SRC"

View File

@ -79,7 +79,7 @@ timestamp=$(date +%F_%H%M)
echo $timestamp
export DL_MIRROR_LOG_DIR="${DL_MIRROR_LOG_DIR:-./logs}"
export DL_MIRROR_OUTPUT_DIR="${DL_MIRROR_OUTPUT_DIR:-./output/stx-r1/CentOS/pike}"
export DL_MIRROR_OUTPUT_DIR="${DL_MIRROR_OUTPUT_DIR:-./output/stx/CentOS}"
MDIR_SRC="${DL_MIRROR_OUTPUT_DIR}/Source"
mkdir -p "$MDIR_SRC"

View File

@ -112,7 +112,7 @@ fi
# to be populated under $MY_REPO/addons/wr-cgcs/layers/cgcs/downloads/puppet
export DL_MIRROR_LOG_DIR="${DL_MIRROR_LOG_DIR:-./logs}"
export DL_MIRROR_OUTPUT_DIR="${DL_MIRROR_OUTPUT_DIR:-./output/stx-r1/CentOS/pike}"
export DL_MIRROR_OUTPUT_DIR="${DL_MIRROR_OUTPUT_DIR:-./output/stx/CentOS}"
logs_dir="${DL_MIRROR_LOG_DIR}"
output_log="$logs_dir/log_download_tarball_missing.txt"

View File

@ -8,7 +8,17 @@ DOWNLOAD_MIRROR_DIR="$(dirname "$(readlink -f "${BASH_SOURCE[0]}" )" )"
source $DOWNLOAD_MIRROR_DIR/../toCOPY/lst_utils.sh
export DL_MIRROR_LOG_DIR="${DL_MIRROR_LOG_DIR:-./logs}"
export DL_MIRROR_OUTPUT_DIR="${DL_MIRROR_OUTPUT_DIR:-./output/stx-r1/CentOS/pike}"
export DL_MIRROR_OUTPUT_DIR="${DL_MIRROR_OUTPUT_DIR:-./output/stx/CentOS}"
# A temporary compatability step to save download time
# during the shift to the new DL_MIRROR_OUTPUT_DIR location.
#
# Relocate downloaded rpms from the old location to the new.
pike_dir="./output/stx-r1/CentOS/pike"
if [ -d $old_dir && ! -d $DL_MIRROR_OUTPUT_DIR ]; then
mkdir -p $(dirname $DL_MIRROR_OUTPUT_DIR)
mv $pike_dir $DL_MIRROR_OUTPUT_DIR
fi
usage() {
echo "$0 [options]"

View File

@ -6,7 +6,7 @@
#
set -e
export SRC_BUILD_ENVIRONMENT="stx-r1"
export SRC_BUILD_ENVIRONMENT="stx"
export ARCH="x86_64"
export PATH="${MY_REPO}/build-tools:${PATH}"
@ -32,7 +32,7 @@ DEST_SRPM_REPODATA="${DEST_SRPM_ROOT_NEW}/repodata"
TIS_REPO_DIR="${MY_REPO}/cgcs-tis-repo"
TIS_CACHE_DIR="${TIS_REPO_DIR}/dependancy-cache"
TIS_CACHE_ORIGIN="${TIS_REPO_DIR}/origin"
ORIGIN="/import/mirrors/CentOS/${SRC_BUILD_ENVIRONMENT}/CentOS/pike"
ORIGIN="/import/mirrors/CentOS/${SRC_BUILD_ENVIRONMENT}/CentOS"
CREATEREPO=$(which createrepo_c)
if [ $? -ne 0 ]; then