diff options
author | 2016-10-27 06:38:54 +0800 | |
---|---|---|
committer | 2016-10-27 06:42:00 +0800 | |
commit | 79ee2c223cf778f74fc6984464cb68a5c0d4ce6f (patch) | |
tree | 53d9c9ec11a63b4dbc741997f3a11498c51791ae /build.sh | |
parent | dde596264dadaa3e530adc4e30f9205edfaff3ba (diff) |
support rhel7.2 with osp9 iso build
Change-Id: Icbe64f57d936ace63419a0a359a163a822dc5e9c
Signed-off-by: QiLiang <liangqi1@huawei.com>
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -80,7 +80,7 @@ function download_packages() { for i in $CENTOS_BASE $COMPASS_CORE $COMPASS_WEB $COMPASS_INSTALL \ $TRUSTY_JUNO_PPA $TRUSTY_LIBERTY_PPA $TRUSTY_MITAKA_PPA $XENIAL_MITAKA_PPA $XENIAL_NEWTON_PPA \ - $UBUNTU_ISO $UBUNTU_ISO1 \ + $UBUNTU_ISO $UBUNTU_ISO1 $REDHAT7_ISO $REDHAT7_OSP9_PPA \ $CENTOS_ISO $CENTOS7_JUNO_PPA $CENTOS7_KILO_PPA $CENTOS7_LIBERTY_PPA $CENTOS7_MITAKA_PPA \ $LOADERS $CIRROS $APP_PACKAGE $COMPASS_PKG $PIP_REPO $ANSIBLE_MODULE; do @@ -106,7 +106,7 @@ function copy_file() # main process mkdir -p $new/compass $new/bootstrap $new/pip $new/guestimg $new/app_packages $new/ansible - mkdir -p $new/repos/cobbler/{ubuntu,centos}/{iso,ppa} + mkdir -p $new/repos/cobbler/{ubuntu,centos,redhat}/{iso,ppa} rm -rf $new/.rr_moved @@ -158,6 +158,14 @@ function copy_file() cp $CACHE_DIR/`basename $CENTOS7_MITAKA_PPA` $new/repos/cobbler/centos/ppa/ -rf fi + if [[ $REDHAT7_ISO ]]; then + cp $CACHE_DIR/`basename $REDHAT7_ISO` $new/repos/cobbler/redhat/iso/ -rf + fi + + if [[ $REDHAT7_OSP9_PPA ]]; then + cp $CACHE_DIR/`basename $REDHAT7_OSP9_PPA` $new/repos/cobbler/redhat/ppa/ -rf + fi + cp $CACHE_DIR/`basename $LOADERS` $new/ -rf || exit 1 cp $CACHE_DIR/`basename $APP_PACKAGE` $new/app_packages/ -rf || exit 1 cp $CACHE_DIR/`basename $ANSIBLE_MODULE | sed 's/.git//g'` $new/ansible/ -rf || exit 1 |