lxc-template: ensure /var/lock/subsys
exists before creating lock
This commit is contained in:
parent
4f49be03ad
commit
ebdf50297f
1 changed files with 1 additions and 0 deletions
|
@ -106,6 +106,7 @@ fi
|
|||
# Unpack the rootfs
|
||||
echo "Unpacking the rootfs"
|
||||
|
||||
mkdir -p /var/lock/subsys
|
||||
(
|
||||
flock -x 200
|
||||
if [ $? -ne 0 ]; then
|
||||
|
|
Loading…
Reference in a new issue