From 56354459b74edcf7f3eb4a10ff37967ee68aa2cb Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 7 Oct 2009 22:57:15 +0000 Subject: only warn if there is no default plymouth theme --- lib/MDV/Draklive/Initrd.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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"); -- cgit v1.2.1