add ubuntu chroot
This commit is contained in:
parent
5391504d61
commit
bfc4c00f78
@ -105,6 +105,7 @@ endif
|
||||
ifeq ($(USE_MIRROR),osci)
|
||||
YUM_REPOS?=proprietary fuel
|
||||
MIRROR_FUEL?=http://download.mirantis.com/epel-fuel-grizzly-3.2/
|
||||
MIRROR_FUEL_UBUNTU?=http://download.mirantis.com/epel-fuel-grizzly-3.2/
|
||||
MIRROR_BASE?=http://srv08-srt.srt.mirantis.net/fwm/$(PRODUCT_VERSION)
|
||||
MIRROR_CENTOS?=$(MIRROR_BASE)/centos
|
||||
MIRROR_UBUNTU?=$(MIRROR_BASE)/ubuntu
|
||||
@ -122,6 +123,7 @@ MIRROR_RHEL_BOOT?=http://srv11-msk.msk.mirantis.net/rhel6/rhel-server-6.4-x86_64
|
||||
# MIRROR_FUEL option is valid only for 'fuel' YUM_REPOS section
|
||||
# and ignored in other cases
|
||||
MIRROR_FUEL?=http://172.18.165.40:82/centos-fuel-3.2-testing/centos/
|
||||
MIRROR_FUEL_UBUNTU?=http://172.18.165.40:82/ubuntu-fuel-3.2-testing/reprepro/
|
||||
# It can be any a list of links (--find-links) or a pip index (--index-url).
|
||||
MIRROR_EGGS?=http://pypi.python.org/simple
|
||||
# NOTE(mihgen): removed gemcutter - it redirects to rubygems.org and has issues w/certificate now
|
||||
|
9
mirror/ubuntu/createchroot.mk
Normal file
9
mirror/ubuntu/createchroot.mk
Normal file
@ -0,0 +1,9 @@
|
||||
$(BUILD_DIR)/mirror/ubuntu/createchroot.done:
|
||||
mkdir -p $(LOCAL_MIRROR_UBUNTU_OS_BASEURL)/chroot
|
||||
# sudo debootstrap --components=main,universe $(UBUNTU_RELEASE) $(LOCAL_MIRROR_UBUNTU_OS_BASEURL)/chroot $(shell echo $(MIRROR_UBUNTU) | sed 's/.dists\///g')
|
||||
sudo debootstrap --components=main,universe $(UBUNTU_RELEASE) $(LOCAL_MIRROR_UBUNTU_OS_BASEURL)/chroot http://mirror.yandex.ru/ubuntu
|
||||
# echo deb $(MIRROR_FUEL_UBUNTU) $(UBUNTU_RELEASE) main | sudo tee $(LOCAL_MIRROR_UBUNTU_OS_BASEURL)/chroot/etc/apt/sources.list.d/mirantis.list
|
||||
echo deb http://download.mirantis.com/precise-grizzly-fuel-3.2 $(UBUNTU_RELEASE) main | sudo tee $(LOCAL_MIRROR_UBUNTU_OS_BASEURL)/chroot/etc/apt/sources.list.d/mirantis.list
|
||||
echo 'APT::Get::AllowUnauthenticated 1;' | sudo tee $(LOCAL_MIRROR_UBUNTU_OS_BASEURL)/chroot/etc/apt/apt.conf.d/02mirantis-unauthenticated
|
||||
sudo chroot $(LOCAL_MIRROR_UBUNTU_OS_BASEURL)/chroot /bin/bash -c "apt-get -y install debpartial-mirror"
|
||||
$(ACTION.TOUCH)
|
@ -1,6 +1,8 @@
|
||||
# This module downloads ubuntu installation images.
|
||||
include $(SOURCE_DIR)/mirror/ubuntu/boot.mk
|
||||
include $(SOURCE_DIR)/mirror/ubuntu/createchroot.mk
|
||||
|
||||
$(BUILD_DIR)/mirror/ubuntu/build.done: \
|
||||
$(BUILD_DIR)/mirror/ubuntu/boot.done
|
||||
$(BUILD_DIR)/mirror/ubuntu/boot.done \
|
||||
$(BUILD_DIR)/mirror/ubuntu/createchroot.done
|
||||
$(ACTION.TOUCH)
|
||||
|
Loading…
Reference in New Issue
Block a user