From: S.Çağlar Onur Date: Sat, 7 Dec 2013 22:52:14 +0000 (-0500) Subject: use $LOCALSTATEDIR/lock/subsys/lxc-ubuntu$release as lock filename X-Git-Tag: lxc-1.0.0.beta1~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=802f869f4096b1be3d8c4d8615788e6817bb5d14;p=thirdparty%2Flxc.git use $LOCALSTATEDIR/lock/subsys/lxc-ubuntu$release as lock filename 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 Acked-by: Stéphane Graber --- diff --git a/templates/lxc-ubuntu.in b/templates/lxc-ubuntu.in index 3dcc93ab1..d8ac22dae 100644 --- a/templates/lxc-ubuntu.in +++ b/templates/lxc-ubuntu.in @@ -369,7 +369,7 @@ install_ubuntu() return 0 - ) 200>$LOCALSTATEDIR/lock/subsys/lxc-ubuntu + ) 200>$LOCALSTATEDIR/lock/subsys/lxc-ubuntu$release return $? }