diff mbox

[Branch,~linaro-validation/lava-dispatcher/trunk] Rev 127: Serialize calls to linaro-media-create. This greatly improves

Message ID 20110928175912.26885.7083.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Paul Larson Sept. 28, 2011, 5:59 p.m. UTC
------------------------------------------------------------
revno: 127
committer: Paul Larson <paul.larson@canonical.com>
branch nick: lava-dispatcher
timestamp: Wed 2011-09-28 12:57:03 -0500
message:
  Serialize calls to linaro-media-create. This greatly improves
  performance when multiple jobs are running in parallel.
modified:
  lava_dispatcher/actions/deploy.py


--
lp:lava-dispatcher
https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk

You are subscribed to branch lp:lava-dispatcher.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-dispatcher/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'lava_dispatcher/actions/deploy.py'
--- lava_dispatcher/actions/deploy.py	2011-09-23 02:53:30 +0000
+++ lava_dispatcher/actions/deploy.py	2011-09-28 17:57:03 +0000
@@ -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")