From 1d3c2be7b46e476cfdc09c7082bb617a84a9c651 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 25 Jun 2004 07:05:27 +0000 Subject: bootloader::add_kernel() do a good job at replacing symlinks with the real kernel/initrd file name, so don't need to do it here --- perl-install/install_steps.pm | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm index f827aa79e..ededc1821 100644 --- a/perl-install/install_steps.pm +++ b/perl-install/install_steps.pm @@ -761,23 +761,6 @@ sub readBootloaderConfigBeforeInstall { add2hash($o->{bootloader} ||= {}, bootloader::read()); $o->{bootloader}{bootUnsafe} = 0 if $o->{bootloader}{boot}; #- when upgrading, don't ask where to install the bootloader (mbr vs boot partition) - - #- since kernel or kernel-smp may not be upgraded, it should be checked - #- if there is a need to update existing lilo.conf entries by following - #- symlinks before kernel or other packages get installed. - #- update everything that could be a filename (for following symlink). - foreach my $e (@{$o->{bootloader}{entries}}) { - while (my $v = readlink "$o->{prefix}/$e->{kernel_or_dev}") { - $v = "/boot/$v" if $v !~ m|^/|; -e "$o->{prefix}$v" or last; - log::l("renaming $e->{kernel_or_dev} entry by $v"); - $e->{kernel_or_dev} = $v; - } - while (my $v = readlink "$o->{prefix}/$e->{initrd}") { - $v = "/boot/$v" if $v !~ m|^/|; -e "$o->{prefix}$v" or last; - log::l("renaming $e->{initrd} entry by $v"); - $e->{initrd} = $v; - } - } } sub setupBootloaderBefore { -- cgit v1.2.1