summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdraklive4
1 files changed, 3 insertions, 1 deletions
diff --git a/draklive b/draklive
index e8694f9..08644b3 100755
--- a/draklive
+++ b/draklive
@@ -1049,7 +1049,9 @@ sub record_harddisk_master {
or last;
} unless $opts->{boot_only};
- install_grub_to_image($live, $media, $hd->{file}, $opts);
+ my $boot_idx = $media->find_boot_partition_index;
+ my $boot_part = $media->{partitions}[$boot_idx];
+ install_usb_bootloader($live, $media, $boot_part->{real_device}, $opts);
foreach my $part (sort { $b->{mntpoint} cmp $a->{mntpoint} } @partitions) {
run_('umount', $part->{real_device});