From 2ec43a1e34c86e1cda7015bf79dc1b58d0084fb9 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 22 Feb 2006 13:24:21 +0000 Subject: use syslinux splash from theme --- tools/draklive | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/draklive b/tools/draklive index 4149a3de0..4ff344e6d 100755 --- a/tools/draklive +++ b/tools/draklive @@ -555,8 +555,14 @@ sub prepare_bootloader { my ($live, $opts) = @_; create_initrd($live); cp_f(get_system_root($live) . '/boot/vmlinuz-' . $live->{system}{kernel}, get_workdir($live) . $live->{prefix}{boot} . '/vmlinuz'); - my $msg = get_system_root($live) . '/boot/message-graphic'; - cp_f($msg, get_workdir($live) . $live->{prefix}{boot} . '/live.msg') if -f $msg; + require bootsplash; + my $theme = bootsplash::themes_read_sysconfig([ bootsplash::get_framebuffer_resolution() ]->[0]); + my $msg = get_system_root($live) . "/usr/share/bootsplash/themes/$theme->{name}/lilo/syslinux"; + if (-f $msg) { + cp_f($msg, get_workdir($live) . $live->{prefix}{boot} . '/live.msg'); + } else { + warn "unable to find syslinux splash ($msg)"; + } output(get_workdir($live) . $live->{prefix}{boot} . '/help.msg', pack("C*", 0x0E, 0x80, 0x03, 0x00, 0xC) . qq( Welcome to Mandriva live! -- cgit v1.2.1