summaryrefslogtreecommitdiffstats
path: root/lib/MDV/Draklive/Initrd.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/MDV/Draklive/Initrd.pm')
-rw-r--r--lib/MDV/Draklive/Initrd.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/MDV/Draklive/Initrd.pm b/lib/MDV/Draklive/Initrd.pm
index c856e84..eb001fe 100644
--- a/lib/MDV/Draklive/Initrd.pm
+++ b/lib/MDV/Draklive/Initrd.pm
@@ -173,7 +173,7 @@ sub create_initrd_for_media {
my $initrd = $live->get_builddir . $live->{prefix}{build}{boot} . $media->get_initrd_path;
compress_initrd_tree($live, $media, $initrd_tree, $initrd);
- add_splash($live, $media);
+ add_splash($live, $initrd);
}
sub create_initrd_scriptlet {
@@ -247,10 +247,9 @@ sub compress_initrd_tree {
}
sub add_splash {
- my ($live, $media) = @_;
+ my ($live, $initrd) = @_;
if ($live->{system}{vga_mode} && $live->{system}{splash} ne 'no') {
require bootloader;
- my $initrd = $live->get_builddir . $live->{prefix}{build}{boot} . $media->get_initrd_path;
my $tmp_initrd = '/tmp/initrd.gz';
cp_f($initrd, $live->get_system_root . $tmp_initrd);
{