diff options
-rwxr-xr-x | draklive | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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}); |