From: Stéphane Graber Date: Fri, 20 Nov 2015 05:34:09 +0000 (-0500) Subject: debian: Fix container creation on missing cache X-Git-Tag: lxc-2.0.0.beta1~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=114387972a2782b794da25202fd7f141ad94cba7;p=thirdparty%2Flxc.git debian: Fix container creation on missing cache 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 --- 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