ditto
authorparmentelat <thierry.parmentelat@inria.fr>
Tue, 4 Dec 2018 12:44:57 +0000 (13:44 +0100)
committerparmentelat <thierry.parmentelat@inria.fr>
Tue, 4 Dec 2018 12:44:57 +0000 (13:44 +0100)
config.planetlab/runtime.pkgs
lbuild-initvm.sh

index 9554462..32d6ec2 100644 (file)
@@ -7,7 +7,7 @@ package: bind-utils
 package: file
 
 # while runing the tests, try to work around a glitch with yum by running yum=complete-transaction
-package: yum-utils
+package<=f27: yum-utils
 package: psmisc
 package>=f29: NetworkManager
 package>=f29: hostname
index 2a5518a..08eb1b4 100755 (executable)
@@ -43,7 +43,7 @@ PUBLIC_BRIDGE=br0
 VIF_GUEST=eth0
 
 ##########
-FEDORA_MIRROR_BASE="http://mirror.onelab.eu/fedora/"
+FEDORA_MIRROR="http://mirror.onelab.eu/"
 FEDORA_MIRROR_KEYS="http://mirror.onelab.eu/keys/"
 FEDORA_PREINSTALLED="dnf dnf-yum passwd rsyslog vim-minimal dhclient chkconfig rootfiles policycoreutils openssh-server openssh-clients"
 DEBIAN_PREINSTALLED="openssh-server openssh-client"
@@ -186,7 +186,7 @@ function fedora_download() {
       sed -i "s/\$basearch/$arch/g; s/\$releasever/${fedora_release}/g;" $f
     done
 
-    MIRROR_URL=$FEDORA_MIRROR_BASE/releases/${fedora_release}/Everything/$arch/os
+    MIRROR_URL=$FEDORA_MIRROR/fedora/releases/${fedora_release}/Everything/$arch/os
     # since fedora18 the rpms are scattered by first name
     # first try the second version of fedora-release first
     RELEASE_URLS=""
@@ -338,8 +338,7 @@ function fedora_configure_yum () {
     # use mirroring/ stuff instead of a hard-wired config
     local repofile=$lxc_root/etc/yum.repos.d/building.repo
     yumconf_mirrors $repofile ${DIRNAME} $fcdistro \
-        "no-exclusion-in-this-context" \
-        $FEDORA_MIRROR_BASE
+        "" $FEDORA_MIRROR
     # the keys stuff requires adjustment though
     sed -i $repofile -e s,'gpgkey=.*',"gpgkey=${FEDORA_MIRROR_KEYS}/RPM-GPG-KEY-fedora-${fedora_release}-primary,"