lxc-template: ensure /var/lock/subsys exists before creating lock

This commit is contained in:
Fabio Rehm 2014-03-14 00:32:47 -03:00
parent 4f49be03ad
commit ebdf50297f

View file

@ -106,6 +106,7 @@ fi
# Unpack the rootfs
echo "Unpacking the rootfs"
mkdir -p /var/lock/subsys
(
flock -x 200
if [ $? -ne 0 ]; then