diff options
author | Pascal Terjan <pterjan@mandriva.org> | 2009-02-12 15:19:26 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mandriva.org> | 2009-02-12 15:19:26 +0000 |
commit | 32948630ab8b20b422c4cba738c3ed812a40b798 (patch) | |
tree | b65cf04eca5511a16c81787697df7b81159dfe71 /perl-install/bootloader.pm | |
parent | 1783171e89f8dd8f45933ffc79f8bb3cc582782a (diff) | |
download | drakx-backup-do-not-use-32948630ab8b20b422c4cba738c3ed812a40b798.tar drakx-backup-do-not-use-32948630ab8b20b422c4cba738c3ed812a40b798.tar.gz drakx-backup-do-not-use-32948630ab8b20b422c4cba738c3ed812a40b798.tar.bz2 drakx-backup-do-not-use-32948630ab8b20b422c4cba738c3ed812a40b798.tar.xz drakx-backup-do-not-use-32948630ab8b20b422c4cba738c3ed812a40b798.zip |
fix a crash when boot device is not removable
Diffstat (limited to 'perl-install/bootloader.pm')
-rw-r--r-- | perl-install/bootloader.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm index c0245852c..d92344a22 100644 --- a/perl-install/bootloader.pm +++ b/perl-install/bootloader.pm @@ -983,7 +983,7 @@ sub suggest { if ($root_part->{is_removable}) { $mbr = fs::get::part2hd($root_part, $all_hds); } else { - $mbr = find { !$_->{is_removable} } $all_hds->{hds}; + $mbr = find { !$_->{is_removable} } @{$all_hds->{hds}}; } my ($onmbr, $unsafe) = $bootloader->{crushMbr} ? (1, 0) : suggest_onmbr($mbr); |