We look up a guest runvar GUEST_CONTEXT_timeoutfactor (according to
the usual rules for guest runvars).
Here CONTEXT can currently be `general' or `install'. (`install'
applies when the guest is being installed.) If the runvar exists, all
timeouts relating to that guest in that context are increased by the
specified factor.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
sub target_adjust_timeout ($$) {
my ($ho,$timeoutref) = @_; # $ho might be a $gho
+ if ($ho->{Guest}) {
+ my $context = $ho->{TimeoutContext} // 'general';
+ $$timeoutref *= guest_var($ho,"${context}_timeoutfactor",1);
+ }
}
#---------- running commands eg on targets ----------
}
}
+ $gho->{TimeoutContext} = 'install';
+
guest_find_lv($gho);
guest_find_diskimg($gho);
guest_find_ether($gho);