summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdraklive7
1 files changed, 5 insertions, 2 deletions
diff --git a/draklive b/draklive
index 212b727..4bc33d2 100755
--- a/draklive
+++ b/draklive
@@ -911,7 +911,7 @@ sub install_disk_bootloader {
$live->{prefix}{boot} . $_;
} get_syslinux_path($media, $opts), $media->get_initrd_path, @syslinux_boot_files;
} elsif ($bootloader eq 'grub') {
- if (need_media_specific_boot($live)) {
+ if (need_media_specific_boot($live) || $opts->{force_bootloader_config}) {
#- FIXME: add get_grub_path (when building boot configuration files)
# and get_bootloader_path (when copying)
mkdir_p($live->{mnt} . $media_boot . '/grub');
@@ -1266,7 +1266,10 @@ sub record_usb_replicator {
run_('mount', $slash->{real_device}, $live->{mnt})
or die "unable to mount $slash->{real_device}\n";
rm_rf($live->{mnt} . $media_boot) if -e $live->{mnt} . $media_boot;
- install_disk_bootloader($live, $media, $slash->{real_device}, $opts);
+ {
+ local $opts->{force_bootloader_config} = 1;
+ install_disk_bootloader($live, $media, $slash->{real_device}, $opts);
+ }
record_rescue_files($live->{mnt}, $slash->{real_device}, [ get_disk_replicator_files($live) ]);
output_p($live->{mnt} . "/images/list", "EN,English," . basename(get_disk_image_path($live)) . ",on\n");