diff mbox

[Branch,~linaro-validation/lava-dispatcher/trunk] Rev 181: Add support for new snowball hwpacks

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

Commit Message

Paul Larson Dec. 15, 2011, 4:38 p.m. UTC
------------------------------------------------------------
revno: 181
committer: Paul Larson <paul.larson@canonical.com>
branch nick: lava-dispatcher
timestamp: Thu 2011-12-15 10:36:00 -0600
message:
  Add support for new snowball hwpacks
modified:
  lava_dispatcher/client/lmc_utils.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/client/lmc_utils.py'
--- lava_dispatcher/client/lmc_utils.py	2011-11-30 23:38:08 +0000
+++ lava_dispatcher/client/lmc_utils.py	2011-12-15 16:36:00 +0000
@@ -105,6 +105,11 @@ 
         if rc:
             raise RuntimeError("linaro-hwpack-replace failed: %s" % output)
 
+        cmd = "sudo linaro-hwpack-replace -r startupfiles -t %s -i" % hwpack_path
+        rc, output = getstatusoutput(cmd)
+        if rc:
+            raise RuntimeError("linaro-hwpack-replace failed: %s" % output)
+
     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.lmc_dev_arg, image_file, rootfs_path, hwpack_path))