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-1.0.9~135 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f0f608f509ec0f962b043a3c6cbc6c9292e0331;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 fd0fe6a6a..54eab9422 100644 --- a/templates/lxc-debian.in +++ b/templates/lxc-debian.in @@ -237,6 +237,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