diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-06-29 13:21:28 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-06-29 13:21:28 +0000 |
commit | e4c0877315bc6335b393658f1d326df065c2d3c2 (patch) | |
tree | 2cb6888d5a2a967c6e006b50f86050aa1f83bd94 | |
parent | 37d7b8c34606eed0a8da6a3c2c547e3424feb885 (diff) | |
download | drakiso-e4c0877315bc6335b393658f1d326df065c2d3c2.tar drakiso-e4c0877315bc6335b393658f1d326df065c2d3c2.tar.gz drakiso-e4c0877315bc6335b393658f1d326df065c2d3c2.tar.bz2 drakiso-e4c0877315bc6335b393658f1d326df065c2d3c2.tar.xz drakiso-e4c0877315bc6335b393658f1d326df065c2d3c2.zip |
automatically find bootloader partition from media partitions array
-rwxr-xr-x | draklive | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -558,7 +558,7 @@ sub create_classical_bootloader { my ($live) = @_; my $initrd_prefix = "/initrd.img"; my $initrd = $live->get_system_root . $live->get_media_prefix('boot') . $initrd_prefix; - my $part_idx = 0; #- FIXME: get from partition layout config + my $part_idx = $live->{media}->find_partition_index('/'); output_p($live->get_system_root . '/boot/grub/menu.lst', build_grub_cfg_raw($live, $live->{media}, -e $initrd && $initrd_prefix, {}, $part_idx)); } |