Is there any way to tell DrakX's auto-install mode to install LILO onto
/dev/hda1 instead of /dev/hda ? I've looked through the code and the
nearest option I can find seems to be
$o -> {bootloader}{crushMbr}
which, if set to 1, causes LILO to install onto /dev/hda but if set to 0
causes LILO to "intelligently" decide whether to install onto the MBR or
the partition.
How about the following patch:
--- usr/bin/perl-install/bootloader.pm.orig Tue Jun 5 15:42:30 2001
+++ usr/bin/perl-install/bootloader.pm Tue Jun 5 19:09:57 2001
@@ -222,7 +222,7 @@
require c; c::initSilo() if arch() =~ /sparc/;
- my ($onmbr, $unsafe) = $lilo->{crushMbr} ? (1, 0) : suggest_onmbr($hds);
+ my ($onmbr, $unsafe) = $lilo->{preserveMbr} ? (0, 0) : ( $lilo->{crushMbr} ? (1,
+0) : suggest_onmbr($hds) );
add2hash_($lilo, arch() =~ /sparc/ ?
{
default => "linux",
This adds an extra option
$o -> {bootloader}{preserveMbr}
which, if set to 1, will force LILO to leave the MBR intact. This
auto-install option must obviously be used with care because if the MBR is
not valid to start with then the resulting system will not boot.
Has been tested and does work.
Michael