From 114387972a2782b794da25202fd7f141ad94cba7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Graber?= Date: Fri, 20 Nov 2015 00:34:09 -0500 Subject: [PATCH] debian: Fix container creation on missing cache MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This is currently breaking our daily image builds which happen in a perfectly clean environment without a Debian keyring and without anything in /var/cache/lxc Signed-off-by: Stéphane Graber --- templates/lxc-debian.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/lxc-debian.in b/templates/lxc-debian.in index 3ae996599..69bdd6830 100644 --- a/templates/lxc-debian.in +++ b/templates/lxc-debian.in @@ -248,6 +248,10 @@ openssh-server release=$3 trap cleanup EXIT SIGHUP SIGINT SIGTERM + + # Create the cache + mkdir -p "$cache" + # If debian-archive-keyring isn't installed, fetch GPG keys directly releasekeyring=/usr/share/keyrings/debian-archive-keyring.gpg if [ ! -f $releasekeyring ]; then -- 2.47.2