prerm no need to remove modules.dep

we do it anyway on postrm

svn path=/dists/trunk/linux-2.6/; revision=14647
This commit is contained in:
Maximilian Attems 2009-11-17 14:52:25 +00:00
parent 1c6289c6bf
commit 8d0a1929ec
1 changed files with 3 additions and 13 deletions

View File

@ -159,7 +159,7 @@ if ($running eq $version) {
chdir("/") or die "could not chdir to /:$!\n";
if (-f "/etc/$loader.conf") { #I know, could be a link, but ..
open (LILO, "/etc/$loader.conf") || &success(); # this is not critical
open (LILO, "/etc/$loader.conf"); # this is not critical
while (<LILO>) {
chop;
s/\#.*//; # nix the comments
@ -173,11 +173,11 @@ if (-f "/etc/$loader.conf") { #I know, could be a link, but ..
$WouldInvalidate |= $image =~ /$kimage-$version/;
}
else {
&success(); # invalid $loader.conf file
last; # invalid $loader.conf file
}
}
else {
&success(); # invalid $loader.conf file
last; # invalid $loader.conf file
}
}
close (LILO);
@ -212,7 +212,6 @@ if (-f "/etc/$loader.conf") { #I know, could be a link, but ..
}
else {
print STFERR "Ok, proceeding with removing running kernel image.\n";
&success();
}
}
}
@ -286,14 +285,5 @@ if (-d "/etc/kernel/prerm.d/$version") {
die "Failed to process /etc/kernel/prerm.d/$version";
}
sub success () {
-f "/lib/modules/$version/modules.dep" &&
unlink "/lib/modules/$version/modules.dep";
exit 0;
}
&success();
exit 0;
__END__