To do so initialise $ho->{DiVersion} in select host and use it in
ts-host-install.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
[ ijc missing s/diversion/di_version in selecthost ]
};
if (defined $job) {
$ho->{Suite} = target_var($ho, "suite") // $c{DebianSuite};
+ $ho->{DiVersion} = target_var($ho, "di_version") // $c{TftpDiVersion};
}
#----- handle hosts which are themselves guests (nested) -----
sub setup_pxeboot_firstboot($) {
my ($ps_url) = @_;
- my $d_i= $ho->{Tftp}{DiBase}.'/'.$r{arch}.'/'.$c{TftpDiVersion}.'-'.$ho->{Suite};
+ my $d_i= $ho->{Tftp}{DiBase}.'/'.$r{arch}.'/'.$ho->{DiVersion}.'-'.$ho->{Suite};
my @dicmdline= qw(vga=normal);
push @dicmdline, di_installcmdline_core($ho, $ps_url, %xopts);