diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-09-15 19:36:06 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-09-15 19:36:06 +0000 |
commit | 4f67d12f31e8186c28e3cdc369a1111d4028cedf (patch) | |
tree | db941736c458214339062d988f8572302ebb6bc2 /draklive | |
parent | 16dad0203d2e3d410ae4e0baaac75aaceebc9831 (diff) | |
download | drakiso-4f67d12f31e8186c28e3cdc369a1111d4028cedf.tar drakiso-4f67d12f31e8186c28e3cdc369a1111d4028cedf.tar.gz drakiso-4f67d12f31e8186c28e3cdc369a1111d4028cedf.tar.bz2 drakiso-4f67d12f31e8186c28e3cdc369a1111d4028cedf.tar.xz drakiso-4f67d12f31e8186c28e3cdc369a1111d4028cedf.zip |
fix install grub to separate /boot partition
Diffstat (limited to 'draklive')
-rwxr-xr-x | draklive | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -852,13 +852,14 @@ sub install_grub_to_image { cp_af(glob_($live->get_system_root . "/lib/grub/i386-mandriva/*"), $live->{mnt} . $grub_dir); my $part_idx = $media->find_boot_partition_index; + my $grub_prefix = $media->find_partition_index('/boot') ? "/grub" : $grub_dir; open(my $grub, "| /sbin/grub --batch --no-floppy"); # using disk loopback fails, have to use image path print $grub <<EOF; device (hd0) $img root (hd0,$part_idx) -setup --prefix=$grub_dir (hd0) +setup --prefix=$grub_prefix (hd0) quit EOF close($grub) or die "unable to run grub\n"; |