summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-12-07 14:49:20 +0000
committerOlivier Blin <oblin@mandriva.com>2009-12-07 14:49:20 +0000
commit459cb16bf5ff1736c692bdce051968c1ac07cd9b (patch)
tree0806ba9c1e50a7121adc4a7d0a0287c601d0d996
parent55896ce3c58dff46404f423824628420243763c7 (diff)
downloaddraklive-459cb16bf5ff1736c692bdce051968c1ac07cd9b.tar
draklive-459cb16bf5ff1736c692bdce051968c1ac07cd9b.tar.gz
draklive-459cb16bf5ff1736c692bdce051968c1ac07cd9b.tar.bz2
draklive-459cb16bf5ff1736c692bdce051968c1ac07cd9b.tar.xz
draklive-459cb16bf5ff1736c692bdce051968c1ac07cd9b.zip
update gfxboot theme before copying gfxboot files
-rwxr-xr-xdraklive21
1 files 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 {