]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
debian: Fix container creation on missing cache
authorStéphane Graber <stgraber@ubuntu.com>
Fri, 20 Nov 2015 05:34:09 +0000 (00:34 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 20 Nov 2015 05:34:09 +0000 (00:34 -0500)
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 <stgraber@ubuntu.com>
templates/lxc-debian.in

index 3ae996599d127f8ad1f7b410c75cf16ec813c911..69bdd6830db80854cc8539f5a58d1598c77ff721 100644 (file)
@@ -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