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.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/MDV/Draklive/Initrd.pm b/lib/MDV/Draklive/Initrd.pm
index 79e8ca3..3095fbf 100644
--- a/lib/MDV/Draklive/Initrd.pm
+++ b/lib/MDV/Draklive/Initrd.pm
@@ -69,7 +69,7 @@ sub inst_initrd_bin {
sub create_initrd_for_media {
my ($live, $media) = @_;
my $initrd = $live->get_builddir . $live->{prefix}{build}{boot} . $media->get_initrd_path;
- create_media_specific_initrd($live, $media, $live->get_system_root, $initrd, $live->find_kernel);
+ create_media_specific_initrd($live, $media, $live->get_system_root, $initrd, $live->find_kernel->{version});
}
sub create_media_specific_initrd {
@@ -296,7 +296,7 @@ sub add_splash {
sub create_classical_initrd {
my ($live) = @_;
my $root = $live->get_system_root;
- my $kernel = $live->find_kernel;
+ my $kernel = $live->find_kernel->{version};
#- FIXME: use bootloader-config and allow it not to require a bootloader?
print "using kernel $kernel\n";