my $version;
my $have_version = 0;
my $machine;
+my $last_machine;
my $ssh_user;
my $tmpdir;
my $builddir;
sub get_grub2_index {
return if (defined($grub_number) && defined($last_grub_menu) &&
- $last_grub_menu eq $grub_menu);
+ $last_grub_menu eq $grub_menu && defined($last_machine) &&
+ $last_machine eq $machine);
doprint "Find grub2 menu ... ";
$grub_number = -1;
if (!$found);
doprint "$grub_number\n";
$last_grub_menu = $grub_menu;
+ $last_machine = $machine;
}
sub get_grub_index {
return;
}
return if (defined($grub_number) && defined($last_grub_menu) &&
- $last_grub_menu eq $grub_menu);
+ $last_grub_menu eq $grub_menu && defined($last_machine) &&
+ $last_machine eq $machine);
doprint "Find grub menu ... ";
$grub_number = -1;
if (!$found);
doprint "$grub_number\n";
$last_grub_menu = $grub_menu;
+ $last_machine = $machine;
}
sub wait_for_input