From fb5b2037cca9b1f92edbf72faf2d13395ad37cb4 Mon Sep 17 00:00:00 2001 From: Francois Pons Date: Tue, 12 Oct 1999 14:31:42 +0000 Subject: *** empty log message *** --- perl-install/install_steps.pm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'perl-install/install_steps.pm') diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm index a4bf25532..16835a196 100644 --- a/perl-install/install_steps.pm +++ b/perl-install/install_steps.pm @@ -49,9 +49,9 @@ sub leavingStep($$) { eval { commands::cp('-f', "/tmp/ddebug.log", "$o->{prefix}/root") } if -d "$o->{prefix}/root" && !$::testing; for (my $s = $o->{steps}{first}; $s; $s = $o->{steps}{$s}{next}) { - + #- the reachability property must be recomputed each time to take + #- into account failed step. next if $o->{steps}{$s}{done} && !$o->{steps}{$s}{redoable}; - next if $o->{steps}{$s}{reachable}; my $reachable = 1; if (my $needs = $o->{steps}{$s}{needs}) { @@ -340,9 +340,11 @@ sub readBootloaderConfigBeforeInstall { $v = readlink "$o->{prefix}/boot/$image"; if ($v) { $v = "/boot/$v" if $v !~ m@/@; - $o->{bootloader}{entries}{$v} = $o->{bootloader}{entries}{"/boot/$image"}; - delete $o->{bootloader}{entries}{"/boot/$image"}; - log::l("renaming /boot/$image entry by $v"); + if (-e "$o->{prefix}$v") { + $o->{bootloader}{entries}{$v} = $o->{bootloader}{entries}{"/boot/$image"}; + delete $o->{bootloader}{entries}{"/boot/$image"}; + log::l("renaming /boot/$image entry by $v"); + } } } } -- cgit v1.2.1