[lxc-devel] [lxc-ci/master] images/debian: Fix cloud images
monstermunchkin on Github
lxc-bot at linuxcontainers.org
Tue Jun 16 06:14:22 UTC 2020
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 303 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200615/e830f478/attachment.bin>
-------------- next part --------------
From f8968d6bd89104da298071df366ac9a0f4663eac Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Tue, 16 Jun 2020 08:13:02 +0200
Subject: [PATCH] images/debian: Fix cloud images
Signed-off-by: Thomas Hipp <thomas.hipp at 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
More information about the lxc-devel
mailing list