Add mirror-ubuntu and mirror-centos targets

Useful for updating the Ubuntu (CentOS) packages mirror without rebuilding
the whole ISO (and without re-deploying the Fuel master node).

blueprint support-ubuntu-trusty
Change-Id: Ie683dc0d03e253dc6986ba3650e529796ffd5dc7
This commit is contained in:
Alexei Sheplyakov 2014-08-31 10:56:40 +04:00
parent a9e0429446
commit 872b4395f1
2 changed files with 6 additions and 1 deletions

View File

@ -7,3 +7,7 @@ $(BUILD_DIR)/mirror/centos/build.done: \
$(BUILD_DIR)/mirror/centos/repo.done \
$(BUILD_DIR)/mirror/centos/boot.done
$(ACTION.TOUCH)
mirror-centos: $(BUILD_DIR)/mirror/centos/build.done
.PHONY: mirror-centos

View File

@ -1,9 +1,10 @@
.PHONY: clean-ubuntu
.PHONY: clean-ubuntu mirror-ubuntu
# This module downloads ubuntu installation images.
include $(SOURCE_DIR)/mirror/ubuntu/boot.mk
include $(SOURCE_DIR)/mirror/ubuntu/createchroot.mk
clean: clean-ubuntu
mirror-ubuntu: $(BUILD_DIR)/mirror/ubuntu/build.done
clean-ubuntu:
(mount -l | grep -q $(LOCAL_MIRROR_UBUNTU_OS_BASEURL)/chroot/proc && sudo umount $(LOCAL_MIRROR_UBUNTU_OS_BASEURL)/chroot/proc) || exit 0