From patchwork Thu Oct 30 11:43:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Campbell X-Patchwork-Id: 39827 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 17787202FE for ; Thu, 30 Oct 2014 11:44:48 +0000 (UTC) Received: by mail-wi0-f198.google.com with SMTP id n3sf3075971wiv.1 for ; Thu, 30 Oct 2014 04:44:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:message-id:from:to:date:in-reply-to :references:organization:mime-version:cc:subject:precedence:list-id :list-unsubscribe:list-post:list-help:list-subscribe:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:list-archive:content-type:content-transfer-encoding; bh=4ER7vcZ+chxleGffF2EaMh1A5ankccoyOzlXsbb65vk=; b=k/QjH8glef27sH9C7R6DqLhxgVvmFR8xhUQMQY9fS1uxYMzhvytDAxuAoNXZRWXe9+ C0uJY4li65IIHYURR7/FMKrCZH2t7GbKF/vPUSojnBlM0adepJTtU3bBlTm+QBRqA7Wa 9PXN48uYtbYeKVMp0lWuJY/lXriEOVGxVeVw1LeW1Fq9Z25TT37MmfSLdmX4KVeGlAid rf+sEoa8+DblHIIZIO3Gehj1jaTD/iesP/HK21iiGnZlCv0ZVOHQ7tyMvlDBIXMKeNy9 KWBxxYCxKD5Gg4M7aad/Aq1Ft/sLH2EeUEnu+zdFhX/zpSAZONe4d6lyE2iBlLm45wLR zMdg== X-Gm-Message-State: ALoCoQn+bqqEVQqdHUc2BdjHirCZ3xTTED08p4IcHfXucrypLLdzOQ86RWLUoUMo9W1GWjntlkSS X-Received: by 10.194.133.40 with SMTP id oz8mr1919659wjb.2.1414669487303; Thu, 30 Oct 2014 04:44:47 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.66 with SMTP id h2ls269351laa.58.gmail; Thu, 30 Oct 2014 04:44:46 -0700 (PDT) X-Received: by 10.152.37.69 with SMTP id w5mr5209866laj.84.1414669486874; Thu, 30 Oct 2014 04:44:46 -0700 (PDT) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id at1si11588422lbc.102.2014.10.30.04.44.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 30 Oct 2014 04:44:46 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by mail-la0-f48.google.com with SMTP id gq15so4154691lab.21 for ; Thu, 30 Oct 2014 04:44:46 -0700 (PDT) X-Received: by 10.152.5.38 with SMTP id p6mr18117855lap.44.1414669486767; Thu, 30 Oct 2014 04:44:46 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp25649lbz; Thu, 30 Oct 2014 04:44:45 -0700 (PDT) X-Received: by 10.140.42.134 with SMTP id c6mr23553317qga.7.1414669485213; Thu, 30 Oct 2014 04:44:45 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id v78si11919402qgv.37.2014.10.30.04.44.44 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 30 Oct 2014 04:44:45 -0700 (PDT) Received-SPF: none (google.com: xen-devel-bounces@lists.xen.org does not designate permitted sender hosts) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Xjo97-0005jw-HR; Thu, 30 Oct 2014 11:44:05 +0000 Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Xjo95-0005is-Pa for xen-devel@lists.xen.org; Thu, 30 Oct 2014 11:44:03 +0000 Received: from [85.158.143.35] by server-3.bemta-4.messagelabs.com id 74/8B-02699-38422545; Thu, 30 Oct 2014 11:44:03 +0000 X-Env-Sender: Ian.Campbell@citrix.com X-Msg-Ref: server-11.tower-21.messagelabs.com!1414669441!13635620!1 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 6.12.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 16045 invoked from network); 30 Oct 2014 11:44:02 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-11.tower-21.messagelabs.com with RC4-SHA encrypted SMTP; 30 Oct 2014 11:44:02 -0000 X-IronPort-AV: E=Sophos;i="5.07,285,1413244800"; d="scan'208";a="187785913" Message-ID: <1414669439.2064.28.camel@citrix.com> From: Ian Campbell To: Ian Jackson Date: Thu, 30 Oct 2014 11:43:59 +0000 In-Reply-To: <21586.8534.140271.437090@mariner.uk.xensource.com> References: <1414579268.29975.13.camel@citrix.com> <1414601464.2064.9.camel@citrix.com> <21585.8227.12267.818642@mariner.uk.xensource.com> <1414602948.2064.11.camel@citrix.com> <21586.8534.140271.437090@mariner.uk.xensource.com> Organization: Citrix Systems, Inc. X-Mailer: Evolution 3.12.7-1 MIME-Version: 1.0 X-DLP: MIA1 Cc: xen-devel Subject: Re: [Xen-devel] [PATCH OSSTEST v2 00/20] support for ARM32 arndale and cubietruck platforms X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ian.campbell@citrix.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: On Thu, 2014-10-30 at 11:30 +0000, Ian Jackson wrote: > Ian Campbell writes ("Re: [Xen-devel] [PATCH OSSTEST v2 00/20] support for ARM32 arndale and cubietruck platforms"): > > BTW, is there some helper which will call mg-debian-installer-update the > > appropriate number of times with the right args for each arch for a > > production system update? > > No. > > > AFAIK there is only a helper for standalone mode. > > Feel free to write one :-). It's a bit noddy, but how about: ----8<---------------- >From 3ec8b49595849d19e4dfd6ed786f540fba9b3ebd Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Thu, 30 Oct 2014 11:39:17 +0000 Subject: [PATCH] Add simple helper to update DI for all architectures. Uses DebianNonfreeFirmware, even (especially) for production, so move the README stanza out of standalone only section. The current default matches what is in the current production versions of DI. Signed-off-by: Ian Campbell --- README | 16 ++++++++-------- mg-debian-installer-update-all | 31 +++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 8 deletions(-) create mode 100755 mg-debian-installer-update-all diff --git a/README b/README index 5ba695d..35532b7 100644 --- a/README +++ b/README @@ -360,14 +360,6 @@ DebianPreseed but you will need to set some NTP servers here if your firewall doesn't permit NTP to Debian's pool.ntp.org servers. -DebianNonfreeFirmware - List of debs of non-free firmware to include in the massaged - debian-installer. You will need this if you want to use network - card which requires non-free firmware. The default is just - "firmware-bnx2'. If your host operating system doesn't have - grep-dctrl (for example because it's not Debian) then you must set - this to the empty string, by writing DebianNonfreeFirmware='' - ======================================== Config settings relevant only to standalone mode @@ -423,6 +415,14 @@ GuestDebianSuite defaults to DebianSuite DebianPreseed added to existing preseed file +DebianNonfreeFirmware + List of debs of non-free firmware to include in the massaged + debian-installer. You will need this if you want to use network + card which requires non-free firmware. The default is just + "firmware-bnx2'. If your host operating system doesn't have + grep-dctrl (for example because it's not Debian) then you must set + this to the empty string, by writing DebianNonfreeFirmware='' + TftpFoo_ and TftpFoo Describes various properties relating to Tftp in a given , diff --git a/mg-debian-installer-update-all b/mg-debian-installer-update-all new file mode 100755 index 0000000..eca4a5f --- /dev/null +++ b/mg-debian-installer-update-all @@ -0,0 +1,31 @@ +#!/bin/bash +# usage +# ./mg-debian-installer-update-all + +# This is part of "osstest", an automated testing framework for Xen. +# Copyright (C) 2015 Citrix Inc. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + +set -e + +. cri-getconfig + +suite=`getconfig DebianSuite` +fws=`getconfig DebianNonfreeFirmware` +arches="armhf amd64 i386" + +for arch in $arches ; do + ./mg-debian-installer-update $suite $arch $fws +done