From: Thierry Parmentelat <thierry.parmentelat@inria.fr>
Date: Wed, 26 Mar 2014 15:29:36 +0000 (+0100)
Subject: oops, cache dir needs to be created
X-Git-Tag: 5.3.3~6
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=c36f66a53829c3908c22bb64acc24bcbeb8d454b;p=build.git

oops, cache dir needs to be created
---

diff --git a/lbuild-initvm.sh b/lbuild-initvm.sh
index ee03232e..e5a03afc 100755
--- a/lbuild-initvm.sh
+++ b/lbuild-initvm.sh
@@ -103,6 +103,7 @@ function fedora_install() {
     set -e
 
     cache=/var/cache/lxc/fedora/$arch/$release
+    mkdir -p $cache
     
     (
         flock --exclusive --timeout 60 200 || { echo "Cache repository is busy." ; return 1 ; }