diff options
-rwxr-xr-x | draklive | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |