From 6aefaec3e80f8adbdf6cb9b77bf65ebd452a76c4 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 29 Sep 2004 02:27:15 +0000 Subject: add raid-extra-boot=mbr when installing on mdX (bugzilla #11699) --- perl-install/any.pm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'perl-install') diff --git a/perl-install/any.pm b/perl-install/any.pm index 7af5881dd..0982a5a1f 100644 --- a/perl-install/any.pm +++ b/perl-install/any.pm @@ -289,6 +289,12 @@ sub setupBootloader__general { #- remove bios mapping if the user changed the boot device delete $b->{bios} if $b->{boot} ne $prev_boot; + if ($b->{boot} =~ m!/dev/md\d+$!) { + $b->{'raid-extra-boot'} = 'mbr'; + } else { + delete $b->{'raid-extra-boot'} if $b->{'raid-extra-boot'} eq 'mbr'; + } + if ($b->{method} eq 'grub') { $in->do_pkgs->ensure_binary_is_installed('grub', "grub", 1) or return 0; } -- cgit v1.2.1