From patchwork Tue Jan 29 04:19:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Doan X-Patchwork-Id: 14318 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 1B33223E33 for ; Tue, 29 Jan 2013 04:19:18 +0000 (UTC) Received: from mail-ve0-f172.google.com (mail-ve0-f172.google.com [209.85.128.172]) by fiordland.canonical.com (Postfix) with ESMTP id B37D1A186D1 for ; Tue, 29 Jan 2013 04:19:17 +0000 (UTC) Received: by mail-ve0-f172.google.com with SMTP id 15so10546vea.3 for ; Mon, 28 Jan 2013 20:19:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:content-type:mime-version:x-launchpad-project :x-launchpad-branch:x-launchpad-message-rationale :x-launchpad-branch-revision-number:x-launchpad-notification-type:to :from:subject:message-id:date:reply-to:sender:errors-to:precedence :x-generated-by:x-launchpad-hash:x-gm-message-state; bh=Ryez05xllwPe6JziunsD4zimjiqEyh8DQbQt5VAhvRQ=; b=Y9G1hZpVoZ/dZKZcjoau7paLT8e27bH/9BhcKYN7kTddZQjetR0EBy414fRzM9O116 0ru8bkfxvCxyblI3GNUenqTomClssbEXmmbq9HXYr/k1/3PYLN6bGssNlBR74ThNdrKB fBKU/H1BE9QmXRySt1mO8Ao5evwdFAzfQYkpszw3ha8ChLk115xpaRuiZwDjeFlqCBvv NCQhQzB/SzNjKCe/NFoUbbSxWcztpvg1gozdAUNKFCc9EQ1oApN96XbuNCzPwS0Sy3Ed SSn8ngSVWiwF8Ll8XFR6xlrDEGinsdIEzcVPlAL6YpO/Ns0q9WIJhoE/elJj29MwmmS8 /lAw== X-Received: by 10.52.176.6 with SMTP id ce6mr126455vdc.57.1359433157078; Mon, 28 Jan 2013 20:19:17 -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.58.145.101 with SMTP id st5csp117908veb; Mon, 28 Jan 2013 20:19:16 -0800 (PST) X-Received: by 10.194.20.231 with SMTP id q7mr161724wje.44.1359433155653; Mon, 28 Jan 2013 20:19:15 -0800 (PST) Received: from indium.canonical.com (indium.canonical.com. [91.189.90.7]) by mx.google.com with ESMTPS id o13si324663wie.65.2013.01.28.20.19.14 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 28 Jan 2013 20:19:15 -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 1U02fC-00061Z-3y for ; Tue, 29 Jan 2013 04:19:14 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 09F8BE0027 for ; Tue, 29 Jan 2013 04:19:14 +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: 545 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [Branch ~linaro-validation/lava-dispatcher/trunk] Rev 545: set hostname in linux based images to device-configs hostname Message-Id: <20130129041914.22470.95704.launchpad@ackee.canonical.com> Date: Tue, 29 Jan 2013 04:19:14 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="16451"; Instance="launchpad-lazr.conf" X-Launchpad-Hash: 671ecbff1f4acbd25fb59f1918c62fa3af0a03b8 X-Gm-Message-State: ALoCoQn4a6N0ArrAjNu8NtHCv/yvlPmcOsmBfZJrnhgBPzEBej324g4goLIwat4kVoHW4USEUzEn ------------------------------------------------------------ revno: 545 committer: Andy Doan branch nick: hostname timestamp: Mon 2013-01-28 17:57:06 -0600 message: set hostname in linux based images to device-configs hostname this was requested by the cbuild guys to help them build better reports based on where the job actually ran. modified: lava_dispatcher/device/target.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/device/target.py' --- lava_dispatcher/device/target.py 2013-01-23 17:52:50 +0000 +++ lava_dispatcher/device/target.py 2013-01-28 23:57:06 +0000 @@ -154,11 +154,15 @@ self.deployment_data = Target.ubuntu_deployment_data with open('%s/root/.bashrc' % rootdir, 'a') as f: f.write('export PS1="%s"\n' % self.deployment_data['TESTER_PS1']) + with open('%s/etc/hostname' % rootdir, 'w') as f: + f.write('%s\n' % self.config.hostname) def _customize_oe(self, rootdir): self.deployment_data = Target.oe_deployment_data with open('%s/etc/profile' % rootdir, 'a') as f: f.write('export PS1="%s"\n' % self.deployment_data['TESTER_PS1']) + with open('%s/etc/hostname' % rootdir, 'w') as f: + f.write('%s\n' % self.config.hostname) def _customize_linux(self, image): root_part = self.config.root_part