summaryrefslogtreecommitdiffstats
path: root/draklive
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2010-03-09 14:46:42 +0000
committerOlivier Blin <oblin@mandriva.com>2010-03-09 14:46:42 +0000
commite1315e6063ebb0513a9ba02109b9aa66abb76d83 (patch)
tree6b73929d024e294c1afc0a15f5b31896af162600 /draklive
parentc0dcb5fc0170183d49ee64972ad773f309914f5d (diff)
downloaddrakiso-e1315e6063ebb0513a9ba02109b9aa66abb76d83.tar
drakiso-e1315e6063ebb0513a9ba02109b9aa66abb76d83.tar.gz
drakiso-e1315e6063ebb0513a9ba02109b9aa66abb76d83.tar.bz2
drakiso-e1315e6063ebb0513a9ba02109b9aa66abb76d83.tar.xz
drakiso-e1315e6063ebb0513a9ba02109b9aa66abb76d83.zip
copy grub files from arched lib dir (reported by boklm)
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;