summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdraklive2
1 files changed, 1 insertions, 1 deletions
diff --git a/draklive b/draklive
index 1e528fe..deb00e0 100755
--- a/draklive
+++ b/draklive
@@ -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));
}