diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2004-09-29 02:27:15 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2004-09-29 02:27:15 +0000 |
commit | 6aefaec3e80f8adbdf6cb9b77bf65ebd452a76c4 (patch) | |
tree | 1dfd1ffd78b92797040a0bc998bf9ac6fca02e5e /perl-install/any.pm | |
parent | 2e5ca5976437bf44af152b3b78d40538e4190c72 (diff) | |
download | drakx-6aefaec3e80f8adbdf6cb9b77bf65ebd452a76c4.tar drakx-6aefaec3e80f8adbdf6cb9b77bf65ebd452a76c4.tar.gz drakx-6aefaec3e80f8adbdf6cb9b77bf65ebd452a76c4.tar.bz2 drakx-6aefaec3e80f8adbdf6cb9b77bf65ebd452a76c4.tar.xz drakx-6aefaec3e80f8adbdf6cb9b77bf65ebd452a76c4.zip |
add raid-extra-boot=mbr when installing on mdX (bugzilla #11699)
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; } |