summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-08-06 20:15:25 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-08-06 20:15:25 +0000
commit9001e5c9e7e4235d81d73b92a48c57785374f97e (patch)
tree91ed2742afb7fcac58876e4854a41bfe60e9489f
parent5ff86afea2b3b585d63e6ab96ab9beb389faffc0 (diff)
downloaddrakx-9001e5c9e7e4235d81d73b92a48c57785374f97e.tar
drakx-9001e5c9e7e4235d81d73b92a48c57785374f97e.tar.gz
drakx-9001e5c9e7e4235d81d73b92a48c57785374f97e.tar.bz2
drakx-9001e5c9e7e4235d81d73b92a48c57785374f97e.tar.xz
drakx-9001e5c9e7e4235d81d73b92a48c57785374f97e.zip
try to restore the MBR using "lilo -u" for users not liking the default
bootloader automatic configuration (eg: bug #4415)
-rw-r--r--perl-install/any.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 01f52337f..b8a096c37 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -152,6 +152,8 @@ sub setupBootloader {
#- somewhere should bootloader really installed ?
$::isStandalone and my $_w = $in->wait_message(N("Please wait"), N("Bootloader installation in progress"));
+ eval { run_program::rooted($::prefix, 'lilo', '-u') } if $::isInstall && !$::o->{isUpgrade} && -e "$::prefix/etc/lilo.conf" && glob("$::prefix/boot/boot.*");
+
bootloader::install($b, $fstab, $hds);
}