Repo fixed: use external instead of internal

ISO make parametrised to fulfill testing lab requirements
This commit is contained in:
ashaposhnikov 2013-03-12 10:06:43 +00:00
parent f4c7cec362
commit e81c94b80c
2 changed files with 5 additions and 4 deletions

View File

@ -81,6 +81,8 @@ $(ISOROOT)/.discinfo: $(SOURCE_DIR)/.discinfo ; $(ACTION.COPY)
$(ISOROOT)/.treeinfo: $(SOURCE_DIR)/.treeinfo ; $(ACTION.COPY)
$(ISOROOT)/isolinux/isolinux.cfg: $(SOURCE_DIR)/isolinux/isolinux.cfg ; $(ACTION.COPY)
$(ISOROOT)/ks.cfg: $(SOURCE_DIR)/ks.cfg; $(ACTION.COPY)
[ -z "$$TGTDRIVE" ] || sed -i "s/^\(tgtdrive=\)\".*\"$$/\1\"$$TGTDRIVE\"/" $@
[ -z "$$USEEXTIF" ] || sed -i "s/^\(network\s*--bootproto=dhcp\.*\)/\1 --device=$$USEEXTIF/" $@
$(ISOROOT)/bootstrap_admin_node.sh: $(SOURCE_DIR)/bootstrap_admin_node.sh ; $(ACTION.COPY)
$(ISOROOT)/functions.sh: $(SOURCE_DIR)/functions.sh ; $(ACTION.COPY)
$(ISOROOT)/bootstrap_admin_node.conf: $(SOURCE_DIR)/bootstrap_admin_node.conf ; $(ACTION.COPY)

View File

@ -8,9 +8,8 @@ selinux --disabled
url --url http://mirror.stanford.edu/yum/pub/centos/6.3/os/x86_64/
network --bootproto=dhcp
repo --name=Base --mirrorlist=http://mirrorlist.centos.org/?release=6.3&arch=x86_64&repo=os
#repo --name=Base --baseurl=http://172.18.67.168/centos-repo/centos-6.3
repo --name=Updates --mirrorlist=http://mirrorlist.centos.org/?release=6.3&arch=x86_64&repo=updates
repo --name=Mirantis --mirrorlist=http://download.mirantis.com/epel-fuel-folsom/mirror.internal.list
repo --name=Mirantis --mirrorlist=http://download.mirantis.com/epel-fuel-folsom/mirror.external.list
repo --name=PuppetLabs --baseurl=http://yum.puppetlabs.com/el/6/products/x86_64/
keyboard us
rootpw r00tme
@ -25,7 +24,7 @@ clearpart --all --initlabel
# hard drives
drives=""
for drv in `ls -1 /sys/block | grep "sd\|hd\|vd"`; do
for drv in `ls -1 /sys/block | grep -e "sd\|hd\|vd"`; do
if (grep -q 0 /sys/block/${drv}/removable); then
drives="${drives} ${drv}"
fi