From: Wei Liu Subject: [PATCH OSSTEST 3/5] Cope with Jessie's d-i vg name Date: Wed, 20 May 2015 18:56:26 +0100 Message-ID: <1432144588-2102-4-git-send-email-wei.liu2@citrix.com> References: <1432144588-2102-1-git-send-email-wei.liu2@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Yv8EZ-0005Nu-TN for xen-devel@lists.xenproject.org; Wed, 20 May 2015 17:56:48 +0000 In-Reply-To: <1432144588-2102-1-git-send-email-wei.liu2@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: ian.jackson@eu.citrix.com, Wei Liu , ian.campbell@citrix.com List-Id: xen-devel@lists.xenproject.org In ts-xen-build-prep, replace matching lenny with jessie since lenny is not used in production anymore. Signed-off-by: Wei Liu --- ts-host-install | 4 +++- ts-xen-build-prep | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ts-host-install b/ts-host-install index b73c7ff..6e2106e 100755 --- a/ts-host-install +++ b/ts-host-install @@ -87,7 +87,9 @@ END await_tcp(get_timeout($ho,'reboot',$timeout{Sshd}), 14,$ho); - our $vgname= $ho->{Name}; + our $vgname= $ho->{Suite} =~ m/jessie/ + ? "$ho->{Name}-vg" + : $ho->{Name}; if ($ho->{Suite} =~ m/lenny/) { $vgname .= ".$c{TestHostDomain}"; diff --git a/ts-xen-build-prep b/ts-xen-build-prep index 4dece65..25ba3d4 100755 --- a/ts-xen-build-prep +++ b/ts-xen-build-prep @@ -53,8 +53,8 @@ sub overall_limit_pe ($) { sub determine_vg_lv () { $vg= - $ho->{Suite} =~ m/lenny/ - ? "$ho->{Name}.$c{TestHostDomain}" + $ho->{Suite} =~ m/jessie/ + ? "$ho->{Name}-vg" : $ho->{Name}; $lv = "/dev/$vg/$lvleaf"; } -- 1.9.1