summaryrefslogtreecommitdiffstats
path: root/tools/draklive
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2006-02-22 13:24:21 +0000
committerOlivier Blin <oblin@mandriva.org>2006-02-22 13:24:21 +0000
commit2ec43a1e34c86e1cda7015bf79dc1b58d0084fb9 (patch)
tree8eb964a4c03306a53e97c7069cd924ce2729ef83 /tools/draklive
parentca753a7790a67f9614d95aa8c9b3cf4ec6fe959d (diff)
downloaddrakx-2ec43a1e34c86e1cda7015bf79dc1b58d0084fb9.tar
drakx-2ec43a1e34c86e1cda7015bf79dc1b58d0084fb9.tar.gz
drakx-2ec43a1e34c86e1cda7015bf79dc1b58d0084fb9.tar.bz2
drakx-2ec43a1e34c86e1cda7015bf79dc1b58d0084fb9.tar.xz
drakx-2ec43a1e34c86e1cda7015bf79dc1b58d0084fb9.zip
use syslinux splash from theme
Diffstat (limited to 'tools/draklive')
-rwxr-xr-xtools/draklive10
1 files changed, 8 insertions, 2 deletions
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!