From eb767bfbb96f784a174224120b66d4d9134bfdeb Mon Sep 17 00:00:00 2001 From: Thomas Dreibholz Date: Tue, 8 Apr 2014 13:24:10 +0200 Subject: [PATCH] Improved mirror configuration in lbuild-initvm.sh: Now, the mirror can just be specified in FEDORA_MIRROR_BASE instead of hardcoding the OneLab mirror. --- lbuild-initvm.sh | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) 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 <