diff options
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r-- | perl-install/any.pm | 6 |
1 files changed, 6 insertions, 0 deletions
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; } |