summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2009-10-29 19:50:26 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2009-10-29 19:50:26 +0000
commitfbd41454cced4f7490ed5ea5852a6112b7c28e48 (patch)
tree5f96fb6fc47331c1bec1f82a7f0531f8643e75c6
parent27b2a332fbe3ed28dedec35e3980a1e966e641ee (diff)
downloaddraklive-fbd41454cced4f7490ed5ea5852a6112b7c28e48.tar
draklive-fbd41454cced4f7490ed5ea5852a6112b7c28e48.tar.gz
draklive-fbd41454cced4f7490ed5ea5852a6112b7c28e48.tar.bz2
draklive-fbd41454cced4f7490ed5ea5852a6112b7c28e48.tar.xz
draklive-fbd41454cced4f7490ed5ea5852a6112b7c28e48.zip
copy gfxboot files to the media before creating the syslinux.cfg
-rwxr-xr-xdraklive5
1 files changed, 4 insertions, 1 deletions
diff --git a/draklive b/draklive
index f380877..4e0814c 100755
--- a/draklive
+++ b/draklive
@@ -489,13 +489,16 @@ sub create_bootloader {
my $vmlinuz_long = '/boot/vmlinuz-' . $kernel;
-e $live->get_system_root . $vmlinuz_long or die "can not find kernel $kernel\n";
+ # this will copy (among other things) the gfxboot theme to the media
+ # so this must be done before the creating the bootloader since the code
+ # in there may check if a bootlogo is present or not
+ create_syslinux_msg_files($live);
if (need_media_specific_boot($live)) {
create_media_bootloader($live);
} else {
create_classical_bootloader($live);
}
- create_syslinux_msg_files($live);
if ($live->{system}{gfxboot}) {
run_({ root => $live->get_system_root }, '/usr/sbin/grub-gfxmenu', '--update-gfxmenu');
my $boot_dir = $live->get_builddir . $live->{prefix}{build}{boot};