[lxc-devel] [PATCH] plamo: Support LXC_CACHE_PATH

KATOH Yasufumi karma at jazz.email.ne.jp
Wed Jun 24 06:31:59 UTC 2015


lxc-plamo supports LXC_CACHE_PATH that is introduced at commit 6dc6f80

Signed-off-by: KATOH Yasufumi <karma at jazz.email.ne.jp>
---
 templates/lxc-plamo.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/lxc-plamo.in b/templates/lxc-plamo.in
index 3e2a8f2..fbff870 100644
--- a/templates/lxc-plamo.in
+++ b/templates/lxc-plamo.in
@@ -336,7 +336,7 @@ if [ `id -u` -ne 0 ] ; then
   echo "This script should be run as 'root'."
   exit 1
 fi
-cache=@LOCALSTATEDIR@/cache/lxc
+cache="${LXC_CACHE_PATH:- at LOCALSTATEDIR@/cache/lxc}"
 ptcache=$cache/partial-${prog##*-}-$release-$arch
 dlcache=$cache/cache-${prog##*-}-$release-$arch
 rtcache=$cache/rootfs-${prog##*-}-$release-$arch
-- 
2.2.1



More information about the lxc-devel mailing list