diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-10-07 22:57:15 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-10-07 22:57:15 +0000 |
commit | 56354459b74edcf7f3eb4a10ff37967ee68aa2cb (patch) | |
tree | e53daad15f3774547826a1854a0e332ff46e0d3a /lib | |
parent | 76fcf4f3650edec40e072658d83065033dddf454 (diff) | |
download | draklive-56354459b74edcf7f3eb4a10ff37967ee68aa2cb.tar draklive-56354459b74edcf7f3eb4a10ff37967ee68aa2cb.tar.gz draklive-56354459b74edcf7f3eb4a10ff37967ee68aa2cb.tar.bz2 draklive-56354459b74edcf7f3eb4a10ff37967ee68aa2cb.tar.xz draklive-56354459b74edcf7f3eb4a10ff37967ee68aa2cb.zip |
only warn if there is no default plymouth theme
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MDV/Draklive/Initrd.pm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/MDV/Draklive/Initrd.pm b/lib/MDV/Draklive/Initrd.pm index 474f244..66e5393 100644 --- a/lib/MDV/Draklive/Initrd.pm +++ b/lib/MDV/Draklive/Initrd.pm @@ -278,7 +278,13 @@ sub add_splash { my $root = $live->get_system_root(); my $lib_prefix = $live->get_lib_prefix(); - my $plymouth_theme_name = basename(dirname(expand_symlinks($root . "/usr/share/plymouth/themes/default.plymouth"))); + my $default_file = $root . "/usr/share/plymouth/themes/default.plymouth"; + if (!-e $default_file) { + warn "no default plymouth theme\n"; + return; + } + + my $plymouth_theme_name = basename(dirname(expand_symlinks($default_file))); my $plymouth_theme_path = "/usr/share/plymouth/themes/" . $plymouth_theme_name; print "Copying plymouth theme $plymouth_theme_name\n"; mkdir_p($initrd_tree . "/usr/share/plymouth/themes"); |