diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-11-18 14:02:53 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-11-18 14:02:53 +0000 |
commit | 2f3e7895b8cfdd07a0ce331a1190bc87383563d7 (patch) | |
tree | 0587529527c1d2b5ff29234db1bab700058b264c | |
parent | 57f8c033f132b309cfb77309b7aaa552d8c89041 (diff) | |
download | draklive-2f3e7895b8cfdd07a0ce331a1190bc87383563d7.tar draklive-2f3e7895b8cfdd07a0ce331a1190bc87383563d7.tar.gz draklive-2f3e7895b8cfdd07a0ce331a1190bc87383563d7.tar.bz2 draklive-2f3e7895b8cfdd07a0ce331a1190bc87383563d7.tar.xz draklive-2f3e7895b8cfdd07a0ce331a1190bc87383563d7.zip |
write bootloader config for replicator media
-rwxr-xr-x | draklive | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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"); |