summaryrefslogtreecommitdiffstats
path: root/draklive
diff options
context:
space:
mode:
Diffstat (limited to 'draklive')
-rwxr-xr-xdraklive4
1 files changed, 2 insertions, 2 deletions
diff --git a/draklive b/draklive
index e131eb4..4ac770e 100755
--- a/draklive
+++ b/draklive
@@ -485,7 +485,7 @@ sub create_initrd {
sub create_bootloader {
my ($live) = @_;
- my $kernel = $live->find_kernel;
+ my $kernel = $live->find_kernel->{version};
my $vmlinuz_long = '/boot/vmlinuz-' . $kernel;
-e $live->get_system_root . $vmlinuz_long or die "can not find kernel $kernel\n";
@@ -588,7 +588,7 @@ $live->{media}{title} <kernel options>
sub create_media_bootloader {
my ($live) = @_;
- cp_f($live->get_system_root . '/boot/vmlinuz-' . $live->find_kernel, $live->get_builddir . $live->{prefix}{build}{boot} . '/vmlinuz');
+ cp_f($live->get_system_root . '/boot/vmlinuz-' . $live->find_kernel->{version}, $live->get_builddir . $live->{prefix}{build}{boot} . '/vmlinuz');
foreach my $boot ('', @{$live->{media}{extra_boot}}) {
my $opts = { boot => $boot };
output($live->get_builddir . $live->{prefix}{build}{boot} . get_syslinux_path($live->{media}, $opts),