Package: autopkgtest
Version: 5.8
Severity: normal
Tags: patch

autopkgtest-build-lxc checks for an empty lxc.network.type in
/etc/lxc/default.conf, but this has been renamed to lxc.net.0.type in
lxc 3.0.2, see attached patch.

autopkgtest-build-lxc thus continues on and errors out when attempting
apt stuff.

Regards,
Christian
>From b4834e41736131a3889c964c60f468a4c42d49e1 Mon Sep 17 00:00:00 2001
From: Christian Kastner <c...@debian.org>
Date: Tue, 12 Feb 2019 22:18:27 +0100
Subject: [PATCH] lxc/default.conf: lxc.network.type is now lxc.net.0.type

This was introduced to package lxc by commit ba9e2543.
---
 tools/autopkgtest-build-lxc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/autopkgtest-build-lxc b/tools/autopkgtest-build-lxc
index c63c945..787e814 100755
--- a/tools/autopkgtest-build-lxc
+++ b/tools/autopkgtest-build-lxc
@@ -32,7 +32,7 @@ if [ -z "$1" ] || [ -z "$2" ]; then
 fi
 
 # check that LXC config has networking
-if grep -q 'lxc.network.type *= *empty' /etc/lxc/default.conf; then
+if grep -q 'lxc.net.0.type *= *empty' /etc/lxc/default.conf; then
     cat <<EOF >&2
 ERROR: autopkgtest containers need networking; please set it up and adjust
 lxc.network.type in /etc/lxc/default.conf
-- 
2.20.1

Reply via email to