Re: [PATCH] lxc: update to 4.0.11

Xu, Yanfei

On 11/1/21 6:13 PM, Xu, Yanfei wrote:
diff --git a/recipes-containers/lxc/files/tests-add-no-validate-when-using-download-template.patch b/recipes-containers/lxc/files/tests-add-no-validate-when-using-download-template.patch
deleted file mode 100644
index f335e796..00000000
--- a/recipes-containers/lxc/files/tests-add-no-validate-when-using-download-template.patch
+++ /dev/null
@@ -1,85 +0,0 @@
-From 1c2506434e744d8c6a86e42c9d8bae4cde7553f6 Mon Sep 17 00:00:00 2001
-From: Mark Asselstine<mark.asselstine@...>
-Date: Thu, 31 May 2018 15:14:26 -0400
-Subject: [PATCH] tests: add '--no-validate' when using download template
-We are usually running the ptests with core-image-minimal which has no
-mechanism to validate the downloads. Validation isn't really of
-interest to this test at any rate so simply add '--no-validate' to
-avoid failing due to no GPG validation.
-Signed-off-by: Mark Asselstine<mark.asselstine@...>
The reason about dropping this patch refer to the commit of lxc:

commit 82b850ddaa21e0f4d713e764bd57d3d9235fd319
Author: Christian Brauner <christian.brauner@...>
Date: Mon Aug 16 17:40:45 2021 +0200

tests: use busybox in lxc-test-no-new-privs

Signed-off-by: Christian Brauner <christian.brauner@...>

diff --git a/src/tests/lxc-test-no-new-privs b/src/tests/lxc-test-no-new-privs
index cfcb43bd6..64988a011 100755
--- a/src/tests/lxc-test-no-new-privs
+++ b/src/tests/lxc-test-no-new-privs
@@ -44,63 +44,26 @@ = lxcbr0

-if type dpkg >/dev/null 2>&1; then
- ARCH=$(dpkg --print-architecture)
-lxc-create -t download -n c1 -- -d ubuntu -r xenial -a $ARCH
+lxc-create -t busybox -n c1
echo "lxc.no_new_privs = 1" >> /var/lib/lxc/c1/config



Join to automatically receive all group messages.