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

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) ===

From f8968d6bd89104da298071df366ac9a0f4663eac Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.h...@canonical.com>
Date: Tue, 16 Jun 2020 08:13:02 +0200
Subject: [PATCH] images/debian: Fix cloud images

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

diff --git a/images/debian.yaml b/images/debian.yaml
index 1ebbb50..3eb46e5 100644
--- a/images/debian.yaml
+++ b/images/debian.yaml
@@ -1070,6 +1070,18 @@ packages:
       {% if image.release != "sid" and image.release != "bullseye" and not 
(image.release == "wheezy" and image.architecture_mapped == "powerpc") and not 
(image.release == "wheezy" and image.architecture_mapped == "s390x") %}deb 
http://security.debian.org/debian-security {{ image.release }}/updates main{% 
endif %}
 
 actions:
+- trigger: post-unpack
+  action: |-
+    #!/bin/sh
+    set -eux
+
+    cat /etc/resolv.conf > /tmp/resolv.conf
+    umount -l /etc/resolv.conf || true
+    mv /tmp/resolv.conf /etc/
+
+  variants:
+  - cloud
+
 - trigger: post-packages
   action: |-
     #!/bin/sh
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to