This is used in order to get the per-host tftp prefix, used to store
the host initrd file.
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
---
Changes since v1:
- New in this version.
target_run_apt
target_install_packages target_install_packages_norec
target_jobdir target_extract_jobdistpath_subdir
- target_extract_jobdistpath
+ target_extract_jobdistpath target_tftp_prefix
lv_create lv_dev_mapper
poll_loop tcpconnect await_tcp
target_cmd_root($ho, "cd / && tar -hzxf $distcopy", 300);
}
+sub target_tftp_prefix ($) {
+ my ($ho) = @_;
+
+ return "$ho->{Tftp}{TmpDir}/" . hostnamepath($ho);
+}
+
sub guest_find_domid ($$) {
my ($ho,$gho) = @_;
return if defined $gho->{Domid};
push @initrds, "$initrd_overlay.cpio.gz";
logm("using initrds: @initrds");
- my $initrd= "$ho->{Tftp}{TmpDir}".hostnamepath($ho)."--initrd.gz";
+ my $initrd= target_tftp_prefix($ho) . "--initrd.gz";
system_checked("cat -- @initrds >$ho->{Tftp}{Path}$initrd");
push @dicmdline, "domain=$c{TestHostDomain}";