From ad456d6921ebf6ba5ed9155a5a97c024418ef48f Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 14 Sep 2005 15:55:28 +0000 Subject: if we have dmraid devices, use grub, and not only if the boot device is on dmraid (bugzilla #18386) --- perl-install/bootloader.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm index 4f431697a..916eb31eb 100644 --- a/perl-install/bootloader.pm +++ b/perl-install/bootloader.pm @@ -925,11 +925,10 @@ sub method_choices { my ($all_hds) = @_; my $fstab = [ fs::get::fstab($all_hds) ]; my $root_part = fs::get::root($fstab); - my $boot_part = fs::get::root($fstab, 'boot'); - my $boot_disk = fs::get::part2hd($boot_part, $all_hds); + my $have_dmraid = find { fs::type::is_dmraid($_) } @{$all_hds->{hds}}; grep { - (!/lilo/ || !isLoopback($root_part) && !fs::type::is_dmraid($boot_disk)) + (!/lilo/ || !isLoopback($root_part) && !$have_dmraid) && (!/lilo-graphic/ || !detect_devices::matching_desc__regexp('ProSavageDDR')) && (!/grub/ || !isRAID($root_part)); } method_choices_raw(1); -- cgit v1.2.1