summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
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");