X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lbuild-initvm.sh;h=39d65184bbdf735933b88dc19527f9db8038e75a;hb=refs%2Fheads%2Fomf-friendly;hp=f224e9f7c96b5fc24e24868ad190b7f05da861f0;hpb=3611ab27d3c1b27408582e0852270ed22b81e7ed;p=build.git 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 <