[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 13/13] tests/vm: ubuntu.i386: apt proxy setup
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH v2 13/13] tests/vm: ubuntu.i386: apt proxy setup |
Date: |
Fri, 10 May 2019 12:46:33 +0200 |
Configure apt proxy so package downloads
can be cached and can pass firewalls.
Signed-off-by: Gerd Hoffmann <address@hidden>
---
tests/vm/ubuntu.i386 | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/vm/ubuntu.i386 b/tests/vm/ubuntu.i386
index a22d137e76df..b869afd212fa 100755
--- a/tests/vm/ubuntu.i386
+++ b/tests/vm/ubuntu.i386
@@ -51,6 +51,10 @@ class UbuntuX86VM(basevm.BaseVM):
" ssh-authorized-keys:\n",
" - %s\n" % basevm.SSH_PUB_KEY,
"locale: en_US.UTF-8\n"])
+ proxy = os.environ.get("http_proxy")
+ if not proxy is None:
+ udata.writelines(["apt:\n",
+ " proxy: %s" % proxy])
udata.close()
subprocess.check_call(["genisoimage", "-output", "cloud-init.iso",
"-volid", "cidata", "-joliet", "-rock",
--
2.18.1
- [Qemu-devel] [PATCH v2 00/13] tests/vm: serial console autoinstall, misc fixes., Gerd Hoffmann, 2019/05/10
- [Qemu-devel] [PATCH v2 02/13] tests/vm: send proxy environment variables over ssh, Gerd Hoffmann, 2019/05/10
- [Qemu-devel] [PATCH v2 01/13] scripts: use git archive in archive-source, Gerd Hoffmann, 2019/05/10
- [Qemu-devel] [PATCH v2 13/13] tests/vm: ubuntu.i386: apt proxy setup,
Gerd Hoffmann <=
- [Qemu-devel] [PATCH v2 07/13] tests/vm: add DEBUG=1 to help text, Gerd Hoffmann, 2019/05/10
- [Qemu-devel] [PATCH v2 04/13] tests/vm: run test builds on snapshot, Gerd Hoffmann, 2019/05/10
- [Qemu-devel] [PATCH v2 08/13] tests/vm: serial console support helpers, Gerd Hoffmann, 2019/05/10
- [Qemu-devel] [PATCH v2 09/13] tests/vm: openbsd autoinstall, using serial console, Gerd Hoffmann, 2019/05/10
- [Qemu-devel] [PATCH v2 10/13] tests/vm: freebsd autoinstall, using serial console, Gerd Hoffmann, 2019/05/10