summaryrefslogtreecommitdiffstats
path: root/perl-install/bootloader.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-09-19 13:50:11 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-09-19 13:50:11 +0000
commitb323dd3df0352e75bd2bacf544246797e83ce6ae (patch)
tree14e84c35b1192975842578348eab09e57b9744db /perl-install/bootloader.pm
parent41e7a8dc76cc90cc741304a3bbf6188aef135cfa (diff)
downloaddrakx-b323dd3df0352e75bd2bacf544246797e83ce6ae.tar
drakx-b323dd3df0352e75bd2bacf544246797e83ce6ae.tar.gz
drakx-b323dd3df0352e75bd2bacf544246797e83ce6ae.tar.bz2
drakx-b323dd3df0352e75bd2bacf544246797e83ce6ae.tar.xz
drakx-b323dd3df0352e75bd2bacf544246797e83ce6ae.zip
o handle /boot/xxx files on linux raid1
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r--perl-install/bootloader.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index decb3a1d0..4cfad778f 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -1434,6 +1434,11 @@ sub device_string2grub {
}
sub device2grub {
my ($device, $sorted_hds) = @_;
+
+ if (isRAID($device) && $device->{level} == 1) {
+ #- we can take any disk
+ $device = $device->{disks}[0];
+ }
my ($hd, $part_nb) =
$device->{rootDevice} ?
(fs::get::device2part($device->{rootDevice}, $sorted_hds), $device->{device} =~ /(\d+)$/) :