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>
{
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;