From: Thomas Dreibholz Date: Tue, 8 Apr 2014 11:24:10 +0000 (+0200) Subject: Improved mirror configuration in lbuild-initvm.sh: Now, the mirror can just be specif... X-Git-Tag: 5.3.5~21 X-Git-Url: http://git.onelab.eu/?p=build.git;a=commitdiff_plain;h=eb767bfbb96f784a174224120b66d4d9134bfdeb Improved mirror configuration in lbuild-initvm.sh: Now, the mirror can just be specified in FEDORA_MIRROR_BASE instead of hardcoding the OneLab mirror. --- diff --git a/lbuild-initvm.sh b/lbuild-initvm.sh index f224e9f7..39d65184 100755 --- a/lbuild-initvm.sh +++ b/lbuild-initvm.sh @@ -32,6 +32,7 @@ PUBLIC_BRIDGE=br0 VIF_GUEST=eth0 ########## +FEDORA_MIRROR_BASE="http://mirror.onelab.eu/fedora/" FEDORA_PREINSTALLED="yum initscripts passwd rsyslog vim-minimal dhclient chkconfig rootfiles policycoreutils openssh-server openssh-clients" DEBIAN_PREINSTALLED="openssh-server openssh-client" @@ -158,7 +159,7 @@ function fedora_download() { sed -i "s/\$basearch/$arch/g; s/\$releasever/$release/g;" $f done - MIRROR_URL=http://mirror.onelab.eu/fedora/releases/$release/Everything/$arch/os + MIRROR_URL=$FEDORA_MIRROR_BASE/releases/$release/Everything/$arch/os RELEASE_URL1="$MIRROR_URL/Packages/fedora-release-$release-1.noarch.rpm" # with fedora18 the rpms are scattered by first name RELEASE_URL2="$MIRROR_URL/Packages/f/fedora-release-$release-1.noarch.rpm" @@ -315,22 +316,22 @@ function fedora_configure_yum () { cat > $lxc_root/etc/yum.repos.d/building.repo <