The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxc-ci/pull/111

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
Signed-off-by: Thomas Hipp <thomas.h...@canonical.com>
From e9bd488ce4e529c5390999a941e424550ea26026 Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.h...@canonical.com>
Date: Fri, 21 Feb 2020 17:56:39 +0100
Subject: [PATCH] images/gentoo: Make rsync mirror configurable

Signed-off-by: Thomas Hipp <thomas.h...@canonical.com>
---
 images/gentoo.yaml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/images/gentoo.yaml b/images/gentoo.yaml
index 30df501..6dc3910 100644
--- a/images/gentoo.yaml
+++ b/images/gentoo.yaml
@@ -390,6 +390,7 @@ actions:
 
      cp /usr/share/portage/config/repos.conf 
/usr/share/portage/config/repos.conf.orig
      sed -i "s#hkps://keys.gentoo.org#keyserver.ubuntu.com#g" 
/usr/share/portage/config/repos.conf
+     sed -ri "s#(sync-uri =) .+#\1 ${RSYNC_MIRROR}#" 
/usr/share/portage/config/repos.conf
 
      # Patch up /etc/inittab
      if [ -e /etc/inittab ]; then
@@ -411,6 +412,7 @@ actions:
 
      cp /usr/share/portage/config/repos.conf 
/usr/share/portage/config/repos.conf.orig
      sed -i "s#hkps://keys.gentoo.org#keyserver.ubuntu.com#g" 
/usr/share/portage/config/repos.conf
+     sed -ri "s#(sync-uri =) .+#\1 ${RSYNC_MIRROR}#" 
/usr/share/portage/config/repos.conf
    types:
     - containers
     - vm
@@ -452,5 +454,10 @@ actions:
    variants:
      - cloud
 
+environment:
+  variables:
+    - key: RSYNC_MIRROR
+      value: rsync://rsync.ca.gentoo.org/gentoo-portage/
+
 mappings:
   architecture_map: gentoo
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to