From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: [PATCH OSSTEST v2 1/8] Debian: uboot: Use di_vg_name() and lv_dev_mapper() for root= Date: Tue, 6 Oct 2015 13:46:59 +0100 Message-ID: <1444135626-1771-1-git-send-email-ian.campbell@citrix.com> References: <1444135606.5302.145.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1444135606.5302.145.camel@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: ian.jackson@eu.citrix.com, xen-devel@lists.xen.org Cc: Ian Campbell List-Id: xen-devel@lists.xenproject.org root is not a "guest lv", so using target_guest_lv_name is misleading. target_guest_lv_name also fails to properly handle the d-i vg name correctly, which di_vg_name does. Specifically under Jessie an extra "-vg" is appended to the hostname compared with Wheezy and Squeeze. Signed-off-by: Ian Campbell Acked-by: Ian Jackson --- Osstest/Debian.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index 153b375..9347c49 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -131,7 +131,7 @@ sub uboot_common_kernel_bootargs ($) { my ($ho) = @_; - my $root= target_guest_lv_name($ho,"root"); + my $root= lv_dev_mapper(di_vg_name($ho),"root"); my $rootdelay= get_host_property($ho, "rootdelay"); my @bootargs; -- 2.5.3