]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
use $LOCALSTATEDIR/lock/subsys/lxc-ubuntu$release as lock filename
authorS.Çağlar Onur <caglar@10ur.org>
Sat, 7 Dec 2013 22:52:14 +0000 (17:52 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 9 Dec 2013 20:04:46 +0000 (15:04 -0500)
Otherwise one cannot create two containers with different releases
(let's say saucy [cached] and raring [not caced]) if both are not
cached on the local filesystem already. The lock blocks cached
one to move forward until not cached one finishes it's downloads.

Fix that by seperating locks using release names

Signed-off-by: S.Çağlar Onur <caglar@10ur.org>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
templates/lxc-ubuntu.in

index 3dcc93ab1c0ec5aa989737261118ce46cda7af7f..d8ac22daeb8175b1125f24819f4cf61ae29b1155 100644 (file)
@@ -369,7 +369,7 @@ install_ubuntu()
 
         return 0
 
-    ) 200>$LOCALSTATEDIR/lock/subsys/lxc-ubuntu
+    ) 200>$LOCALSTATEDIR/lock/subsys/lxc-ubuntu$release
 
     return $?
 }