From patchwork Thu Jul 21 04:21:21 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Larson X-Patchwork-Id: 2903 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 9BC0D23F44 for ; Thu, 21 Jul 2011 04:21:26 +0000 (UTC) Received: from mail-qw0-f52.google.com (mail-qw0-f52.google.com [209.85.216.52]) by fiordland.canonical.com (Postfix) with ESMTP id 4C44FA18264 for ; Thu, 21 Jul 2011 04:21:26 +0000 (UTC) Received: by qwb8 with SMTP id 8so650273qwb.11 for ; Wed, 20 Jul 2011 21:21:25 -0700 (PDT) Received: by 10.229.25.212 with SMTP id a20mr7809658qcc.148.1311222084328; Wed, 20 Jul 2011 21:21:24 -0700 (PDT) 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.229.217.78 with SMTP id hl14cs129900qcb; Wed, 20 Jul 2011 21:21:23 -0700 (PDT) Received: by 10.216.122.75 with SMTP id s53mr8332808weh.40.1311222082365; Wed, 20 Jul 2011 21:21:22 -0700 (PDT) Received: from adelie.canonical.com (adelie.canonical.com [91.189.90.139]) by mx.google.com with ESMTP id f15si1652978wed.119.2011.07.20.21.21.22; Wed, 20 Jul 2011 21:21:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.139 as permitted sender) client-ip=91.189.90.139; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.139 as permitted sender) smtp.mail=bounces@canonical.com Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1QjklF-0005ck-NV for ; Thu, 21 Jul 2011 04:21:21 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id AEAF72E889B for ; Thu, 21 Jul 2011 04:21:21 +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: 78 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dispatcher/trunk] Rev 78: Some minor changes to fix sudo, and work around a lmc issue where some Message-Id: <20110721042121.10364.79318.launchpad@loganberry.canonical.com> Date: Thu, 21 Jul 2011 04:21:21 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="13475"; Instance="initZopeless config overlay" X-Launchpad-Hash: deb278df0295f7518ef8d6d67b395bd1a18151d9 ------------------------------------------------------------ revno: 78 committer: Paul Larson branch nick: lava-dispatcher timestamp: Wed 2011-07-20 21:48:54 -0500 message: Some minor changes to fix sudo, and work around a lmc issue where some images are too big to fit in the 2G default image size. 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 === modified file 'lava_dispatcher/actions/deploy.py' --- lava_dispatcher/actions/deploy.py 2011-07-20 09:41:30 +0000 +++ lava_dispatcher/actions/deploy.py 2011-07-21 02:48:54 +0000 @@ -83,17 +83,17 @@ """ error_msg = None mntdir = mkdtemp() - cmd = "mount -o loop,offset=%s %s %s" % (offset, image, mntdir) + cmd = "sudo mount -o loop,offset=%s %s %s" % (offset, image, mntdir) rc, output = getstatusoutput(cmd) if rc: os.rmdir(mntdir) raise RuntimeError("Unable to mount image %s at offset %s" % ( image, offset)) - cmd = "tar -C %s -czf %s ." % (mntdir, tarfile) + cmd = "sudo tar -C %s -czf %s ." % (mntdir, tarfile) rc, output = getstatusoutput(cmd) if rc: error_msg = "Failed to create tarball: %s" % tarfile - cmd = "umount %s" % mntdir + cmd = "sudo umount %s" % mntdir rc, output = getstatusoutput(cmd) os.rmdir(mntdir) if error_msg: @@ -118,8 +118,8 @@ image_file = os.path.join(tarball_dir, "lava.img") board = client.board - cmd = ("linaro-media-create --hwpack-force-yes --dev %s " - "--image_file %s --binary %s --hwpack %s" % ( + cmd = ("sudo linaro-media-create --hwpack-force-yes --dev %s " + "--image_file %s --binary %s --hwpack %s --image_size 3G" % ( board.type, image_file, rootfs_path, hwpack_path)) rc, output = getstatusoutput(cmd) if rc: