summaryrefslogtreecommitdiffstats
path: root/draklive
diff options
context:
space:
mode:
Diffstat (limited to 'draklive')
-rwxr-xr-xdraklive3
1 files changed, 2 insertions, 1 deletions
diff --git a/draklive b/draklive
index aebf8a0..83be43a 100755
--- a/draklive
+++ b/draklive
@@ -898,8 +898,9 @@ sub install_grub_to_image {
my $media_boot = $live->get_media_prefix('boot', $opts->{boot});
my $grub_dir = "$media_boot/grub";
my $grub_script = $grub_dir . "/install.sh";
+ my $grub_src = first(glob_($live->get_system_root . "/lib/grub/*-mandriva"));
mkdir_p($live->{mnt} . $grub_dir);
- cp_af(glob_($live->get_system_root . "/lib/grub/i386-mandriva/*"), $live->{mnt} . $grub_dir);
+ cp_af(glob_("$grub_src/*"), $live->{mnt} . $grub_dir);
my $part_idx = $media->find_boot_partition_index;
my $grub_prefix = $media->find_partition_index('/boot') ? "/grub" : $grub_dir;