diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-11-06 12:08:38 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-11-06 12:08:38 +0000 |
commit | 8cffced6747a4e8846788e51cb5bd856fac810d2 (patch) | |
tree | 0a30800e4bc099c3d32249025b099ccd254d9bdb /draklive | |
parent | 956ae9253e631ac216e173b50eb12635784a76da (diff) | |
download | drakiso-8cffced6747a4e8846788e51cb5bd856fac810d2.tar drakiso-8cffced6747a4e8846788e51cb5bd856fac810d2.tar.gz drakiso-8cffced6747a4e8846788e51cb5bd856fac810d2.tar.bz2 drakiso-8cffced6747a4e8846788e51cb5bd856fac810d2.tar.xz drakiso-8cffced6747a4e8846788e51cb5bd856fac810d2.zip |
do not overwrite grub conf for "classical" boot when installing bootloader
Diffstat (limited to 'draklive')
-rwxr-xr-x | draklive | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -909,11 +909,13 @@ sub install_usb_bootloader { $live->{prefix}{boot} . $_; } get_syslinux_path($media, $opts), $media->get_initrd_path, @syslinux_boot_files; } elsif ($bootloader eq 'grub') { - #- FIXME: add get_grub_path (when building boot configuration files) - # and get_bootloader_path (when copying) - mkdir_p($live->{mnt} . $media_boot . '/grub'); - cp_f($live->get_builddir . $live->{prefix}{build}{boot} . '/gfxmenu', $live->{mnt} . $media_boot) if $live->{system}{gfxboot}; - output_p($live->{mnt} . $media_boot . '/grub/menu.lst', build_grub_cfg($live, $media, $opts, $boot_device)); + if (need_compressed_image($live)) { + #- FIXME: add get_grub_path (when building boot configuration files) + # and get_bootloader_path (when copying) + mkdir_p($live->{mnt} . $media_boot . '/grub'); + cp_f($live->get_builddir . $live->{prefix}{build}{boot} . '/gfxmenu', $live->{mnt} . $media_boot) if $live->{system}{gfxboot}; + output_p($live->{mnt} . $media_boot . '/grub/menu.lst', build_grub_cfg($live, $media, $opts, $boot_device)); + } } if (-b $boot_device) { |