From patchwork Thu Dec 15 16:38:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Larson X-Patchwork-Id: 5777 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 93CC423E19 for ; Thu, 15 Dec 2011 16:38:15 +0000 (UTC) Received: from mail-ey0-f180.google.com (mail-ey0-f180.google.com [209.85.215.180]) by fiordland.canonical.com (Postfix) with ESMTP id 75A43A18225 for ; Thu, 15 Dec 2011 16:38:15 +0000 (UTC) Received: by eaak10 with SMTP id k10so2424401eaa.11 for ; Thu, 15 Dec 2011 08:38:15 -0800 (PST) Received: by 10.204.133.213 with SMTP id g21mr1606241bkt.126.1323967095140; Thu, 15 Dec 2011 08:38:15 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.205.129.2 with SMTP id hg2cs46576bkc; Thu, 15 Dec 2011 08:38:14 -0800 (PST) Received: by 10.180.102.74 with SMTP id fm10mr6448511wib.26.1323967093580; Thu, 15 Dec 2011 08:38:13 -0800 (PST) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id fx12si4183265wbb.15.2011.12.15.08.38.13 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 15 Dec 2011 08:38:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) smtp.mail=bounces@canonical.com Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1RbEJx-0001n5-Bp for ; Thu, 15 Dec 2011 16:38:13 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 4FAACE0135 for ; Thu, 15 Dec 2011 16:38:13 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-dispatcher X-Launchpad-Branch: ~linaro-validation/lava-dispatcher/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 181 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dispatcher/trunk] Rev 181: Add support for new snowball hwpacks Message-Id: <20111215163813.17715.75352.launchpad@ackee.canonical.com> Date: Thu, 15 Dec 2011 16:38:13 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="14487"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: ae4b87badbcc2a622c5172085d9bb005023df569 ------------------------------------------------------------ revno: 181 committer: Paul Larson 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 === 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))