summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-11-06 12:09:07 +0000
committerOlivier Blin <oblin@mandriva.com>2009-11-06 12:09:07 +0000
commit97cdb6248d13f2396a89ec66c57320e0ba9018d8 (patch)
tree3d74c84009f430507f8638b115f53a41a7034b98
parent8cffced6747a4e8846788e51cb5bd856fac810d2 (diff)
downloaddraklive-97cdb6248d13f2396a89ec66c57320e0ba9018d8.tar
draklive-97cdb6248d13f2396a89ec66c57320e0ba9018d8.tar.gz
draklive-97cdb6248d13f2396a89ec66c57320e0ba9018d8.tar.bz2
draklive-97cdb6248d13f2396a89ec66c57320e0ba9018d8.tar.xz
draklive-97cdb6248d13f2396a89ec66c57320e0ba9018d8.zip
use install_usb_bootloader for harddisk master too
-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});