}
$flagsq->finish();
- if (!$ho->{Ether} || !$ho->{Power}) {
+ if (!$ho->{Flags}{'no-reinstall'} &&
+ (!$ho->{Ether} || !$ho->{Power})) {
my $dbh_config= opendb('configdb');
my $selname= $ho->{Fqdn};
my $sth= $dbh_config->prepare(<<END);
$ho->{SharedOthers}=
$ho->{Shared} ? $ho->{Shared}{Others} : 0;
- logm("host: selected $ho->{Name} $ho->{Ether} $ho->{Ip}".
+ my $show_ether = $ho->{Ether};
+ $show_ether ||= '<no_ether>';
+ logm("host: selected $ho->{Name} $show_ether $ho->{Ip}".
(!$ho->{Shared} ? '' :
sprintf(" - shared %s %s %d", $ho->{Shared}{Type},
$ho->{Shared}{State}, $ho->{Shared}{Others}+1)));
our ($whhost) = @ARGV;
$whhost ||= 'host';
our $ho= selecthost($whhost);
+exit 0 if $ho->{Flags}{'no-reinstall'};
exit 0 if $ho->{SharedReady};
die if $ho->{SharedOthers};
}
}
-lvextend_stage1();
-prep();
-cacheing_git_mount();
-cacheing_git_install();
-ccache_setup();
-lvextend_stage2();
+if (!$ho->{Flags}{'no-reinstall'}) {
+ lvextend_stage1();
+ prep();
+ cacheing_git_mount();
+ cacheing_git_install();
+ ccache_setup();
+ lvextend_stage2();
+}
resource_shared_mark_ready($ho->{Ident}, $ho->{Name},
"build-".$ho->{Suite}."-".$r{arch});