From 9001e5c9e7e4235d81d73b92a48c57785374f97e Mon Sep 17 00:00:00 2001
From: Pascal Rigaux <pixel@mandriva.com>
Date: Wed, 6 Aug 2003 20:15:25 +0000
Subject: try to restore the MBR using "lilo -u" for users not liking the
 default bootloader automatic configuration (eg: bug #4415)

---
 perl-install/any.pm | 2 ++
 1 file changed, 2 insertions(+)

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);
 }
 
-- 
cgit v1.2.1