From 459cb16bf5ff1736c692bdce051968c1ac07cd9b Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 7 Dec 2009 14:49:20 +0000 Subject: update gfxboot theme before copying gfxboot files --- draklive | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/draklive b/draklive index f0f037d..05223e6 100755 --- a/draklive +++ b/draklive @@ -495,16 +495,6 @@ 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); - } - if ($live->{system}{gfxboot}) { #- would be run by bootloader::add_boot_splash and make-boot-splash, but not called when we don't generate an initrd run_({ root => $live->get_system_root }, '/usr/share/bootsplash/scripts/switch-themes', '-u'); @@ -519,6 +509,17 @@ sub create_bootloader { warn "no gfxmenu file\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); + } } sub remove_unneeded_bootlogo_locales { -- cgit v1.2.1