=== modified file 'lava_dispatcher/actions/deploy.py'
@@ -145,7 +145,7 @@
rootfs_path = download(rootfs_url, tarball_dir)
image_file = os.path.join(tarball_dir, "lava.img")
- cmd = ("sudo linaro-media-create --hwpack-force-yes --dev %s "
+ cmd = ("sudo flock /var/lock/lava-lmc.lck linaro-media-create --hwpack-force-yes --dev %s "
"--image_file %s --binary %s --hwpack %s --image_size 3G" %
(client.device_type, image_file, rootfs_path, hwpack_path))
logging.info("Executing the linaro-media-create command")