MT#10093 Bypass ngcp-installer PXE specific resources for Carrier 3.x

Change-Id: Ie9b8b88bfe503e1af17fbbfd83aa208c26b31349
changes/88/888/2
Alexander Lutay 11 years ago
parent 8ea34f8222
commit 68673df8a3

@ -63,6 +63,8 @@ DEBIAN_REPO_HOST="debian.sipwise.com"
SIPWISE_REPO_HOST="deb.sipwise.com"
SIPWISE_REPO_TRANSPORT="http"
DPL_MYSQL_REPLICATION=true
GRML_PXE_IMAGES_PATH="/lib/live/mount/medium"
PXE_IMAGES_PATH="/tmp/grml_pxe"
# if TARGET_DISK environment variable is set accept it
if [ -n "$TARGET_DISK" ] ; then
@ -1410,6 +1412,7 @@ gen_installer_config () {
if "$CARRIER_EDITION" ; then
cat > ${TARGET}/etc/ngcp-installer/config_deploy.inc << EOF
CROLE="${CROLE}"
PXE_IMAGES_PATH="${PXE_IMAGES_PATH}"
EOF
fi
@ -1475,6 +1478,11 @@ if "$NGCP_INSTALLER" ; then
# generate debian/sipwise repos
set_repos
if "$CARRIER_EDITION"; then
# mount GRML linux image to be copied into ngcpcfg-api folders by ngcp-installer
mount --bind "$GRML_PXE_IMAGES_PATH" "${TARGET}/$PXE_IMAGES_PATH"
fi
set_deploy_status "ngcp-installer"
# install ngcp-installer
@ -2355,6 +2363,9 @@ fi
# don't leave any mountpoints
sync
if "$CARRIER_EDITION"; then
umount ${TARGET}/$PXE_IMAGES_PATH 2>/dev/null || true
fi
umount ${TARGET}/proc 2>/dev/null || true
umount ${TARGET}/sys 2>/dev/null || true
umount ${TARGET}/dev/pts 2>/dev/null || true

Loading…
Cancel
Save