diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-12-15 11:45:10 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-12-15 11:45:10 +0000 |
commit | 6a44b71a11e1423e2f24313a35d9867d56f8d035 (patch) | |
tree | fafcca18d3ea52eb5b40c235d31c534fda009a18 /draklive | |
parent | 9bc36b984cc0542d4e865083bdd3c6f47d300723 (diff) | |
download | drakiso-6a44b71a11e1423e2f24313a35d9867d56f8d035.tar drakiso-6a44b71a11e1423e2f24313a35d9867d56f8d035.tar.gz drakiso-6a44b71a11e1423e2f24313a35d9867d56f8d035.tar.bz2 drakiso-6a44b71a11e1423e2f24313a35d9867d56f8d035.tar.xz drakiso-6a44b71a11e1423e2f24313a35d9867d56f8d035.zip |
fix getting bootsplash theme (fixes gfxboot theme)
Diffstat (limited to 'draklive')
-rwxr-xr-x | draklive | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -555,6 +555,17 @@ sub remove_unneeded_bootlogo_locales { return @kept_locales; } +#- forked from bootsplash::themes_read_sysconfig +sub get_bootsplash_theme() { + my $sysconfig_file = "/etc/sysconfig/bootsplash"; + local $_; + my %theme; + foreach (cat_($::prefix . $sysconfig_file)) { + /^THEME=(.*)/ and $theme{name} = $1; + } + \%theme; +} + sub create_syslinux_msg_files { my ($live) = @_; my $syslinux_dir = $live->get_builddir . $live->{prefix}{build}{boot} . '/syslinux'; @@ -565,7 +576,7 @@ sub create_syslinux_msg_files { require bootsplash; my $theme = do { local $::prefix = $live->get_system_root; - bootsplash::themes_read_sysconfig('800x600'); + get_bootsplash_theme(); }; print "copying $default_gfxboot_theme gfxboot theme\n"; cp_f(glob_($live->get_system_root . "/usr/share/gfxboot/themes/$default_gfxboot_theme/install/*"), $syslinux_dir); |