summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-10-07 22:57:15 +0000
committerOlivier Blin <oblin@mandriva.com>2009-10-07 22:57:15 +0000
commit56354459b74edcf7f3eb4a10ff37967ee68aa2cb (patch)
treee53daad15f3774547826a1854a0e332ff46e0d3a
parent76fcf4f3650edec40e072658d83065033dddf454 (diff)
downloaddraklive-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
-rw-r--r--lib/MDV/Draklive/Initrd.pm8
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");