summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdraklive2
1 files changed, 1 insertions, 1 deletions
diff --git a/draklive b/draklive
index 79f25b7..54dac36 100755
--- a/draklive
+++ b/draklive
@@ -373,7 +373,7 @@ sub find_kernel {
my $kernel = $live->{system}{kernel};
unless ($kernel) {
my $vmlinuz = readlink(get_system_root($live) . '/boot/vmlinuz');
- $vmlinuz ||= find { -e $_ } glob_(get_system_root($live) . '/boot/vmlinuz-*');
+ $vmlinuz ||= find { -e $_ && ! -l $_ } glob_(get_system_root($live) . '/boot/vmlinuz-*');
($kernel) = $vmlinuz =~ /\bvmlinuz-(.*)$/ or die "no kernel can be found";
}
$kernel;