]> xenbits.xensource.com Git - people/liuw/osstest.git/commitdiff
Debian: uboot: Use di_vg_name() and lv_dev_mapper() for root=
authorIan Campbell <ian.campbell@citrix.com>
Tue, 22 Sep 2015 09:33:00 +0000 (10:33 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 8 Oct 2015 16:18:40 +0000 (17:18 +0100)
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 <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Osstest/Debian.pm

index 153b37597daa9aa6c0f1191f1ef8a60cca143820..9347c4951091f5473b7b18202cebebfab2ef7c4e 100644 (file)
@@ -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;