summaryrefslogtreecommitdiffstats
path: root/lib
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 /lib
parent76fcf4f3650edec40e072658d83065033dddf454 (diff)
downloaddrakiso-56354459b74edcf7f3eb4a10ff37967ee68aa2cb.tar
drakiso-56354459b74edcf7f3eb4a10ff37967ee68aa2cb.tar.gz
drakiso-56354459b74edcf7f3eb4a10ff37967ee68aa2cb.tar.bz2
drakiso-56354459b74edcf7f3eb4a10ff37967ee68aa2cb.tar.xz
drakiso-56354459b74edcf7f3eb4a10ff37967ee68aa2cb.zip
only warn if there is no default plymouth theme
Diffstat (limited to 'lib')
-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");