diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-11-06 12:09:07 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-11-06 12:09:07 +0000 |
commit | 97cdb6248d13f2396a89ec66c57320e0ba9018d8 (patch) | |
tree | 3d74c84009f430507f8638b115f53a41a7034b98 | |
parent | 8cffced6747a4e8846788e51cb5bd856fac810d2 (diff) | |
download | draklive-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-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}); |