diff --git a/templates/lxc-altlinux.in b/templates/lxc-altlinux.in index 3aba77b07..35407d0db 100644 --- a/templates/lxc-altlinux.in +++ b/templates/lxc-altlinux.in @@ -198,7 +198,7 @@ install_altlinux() { mkdir -p /var/lock/subsys/ ( - flock -n -x 200 + flock -x 200 if [ $? -ne 0 ]; then echo "Cache repository is busy." return 1 @@ -314,7 +314,7 @@ clean() # lock, so we won't purge while someone is creating a repository ( - flock -n -x 200 + flock -x 200 if [ $? != 0 ]; then echo "Cache repository is busy." exit 1 diff --git a/templates/lxc-debian.in b/templates/lxc-debian.in index 34d959316..68404e31f 100644 --- a/templates/lxc-debian.in +++ b/templates/lxc-debian.in @@ -153,7 +153,7 @@ install_debian() rootfs=$1 mkdir -p @LOCALSTATEDIR@/lock/subsys/ ( - flock -n -x 200 + flock -x 200 if [ $? -ne 0 ]; then echo "Cache repository is busy." return 1 @@ -234,7 +234,7 @@ clean() # lock, so we won't purge while someone is creating a repository ( - flock -n -x 200 + flock -x 200 if [ $? != 0 ]; then echo "Cache repository is busy." exit 1 diff --git a/templates/lxc-fedora.in b/templates/lxc-fedora.in index 3aa2d7300..a8fb8ea5a 100644 --- a/templates/lxc-fedora.in +++ b/templates/lxc-fedora.in @@ -190,7 +190,7 @@ install_fedora() { mkdir -p /var/lock/subsys/ ( - flock -n -x 200 + flock -x 200 if [ $? -ne 0 ]; then echo "Cache repository is busy." return 1 @@ -284,7 +284,7 @@ clean() # lock, so we won't purge while someone is creating a repository ( - flock -n -x 200 + flock -x 200 if [ $? != 0 ]; then echo "Cache repository is busy." exit 1 diff --git a/templates/lxc-lenny.in b/templates/lxc-lenny.in index 910c18520..70a19f344 100644 --- a/templates/lxc-lenny.in +++ b/templates/lxc-lenny.in @@ -142,7 +142,7 @@ install_debian() rootfs=$1 mkdir -p @LOCALSTATEDIR@/lock/subsys/ ( - flock -n -x 200 + flock -x 200 if [ $? -ne 0 ]; then echo "Cache repository is busy." return 1 @@ -222,7 +222,7 @@ clean() # lock, so we won't purge while someone is creating a repository ( - flock -n -x 200 + flock -x 200 if [ $? != 0 ]; then echo "Cache repository is busy." exit 1 diff --git a/templates/lxc-opensuse.in b/templates/lxc-opensuse.in index 3d2e00174..6d81cf5d9 100644 --- a/templates/lxc-opensuse.in +++ b/templates/lxc-opensuse.in @@ -217,7 +217,7 @@ install_opensuse() rootfs=$1 mkdir -p /var/lock/subsys/ ( - flock -n -x 200 + flock -x 200 if [ $? -ne 0 ]; then echo "Cache repository is busy." return 1 @@ -303,7 +303,7 @@ clean() # lock, so we won't purge while someone is creating a repository ( - flock -n -x 200 + flock -x 200 if [ $? != 0 ]; then echo "Cache repository is busy." exit 1 diff --git a/templates/lxc-ubuntu-cloud.in b/templates/lxc-ubuntu-cloud.in index ba66623e6..8cd3410eb 100644 --- a/templates/lxc-ubuntu-cloud.in +++ b/templates/lxc-ubuntu-cloud.in @@ -290,7 +290,7 @@ build_root_tgz() mkdir -p /var/lock/subsys/ ( - flock -n -x 200 + flock -x 200 cd $cache if [ $flushcache -eq 1 ]; then diff --git a/templates/lxc-ubuntu.in b/templates/lxc-ubuntu.in index 7f9833375..fbee3f769 100644 --- a/templates/lxc-ubuntu.in +++ b/templates/lxc-ubuntu.in @@ -228,7 +228,7 @@ install_ubuntu() mkdir -p /var/lock/subsys/ ( - flock -n -x 200 + flock -x 200 if [ $? -ne 0 ]; then echo "Cache repository is busy." return 1