diff options
author | Olivier Blin <oblin@mandriva.com> | 2007-09-03 08:42:38 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2007-09-03 08:42:38 +0000 |
commit | 5e911a37d0470f3b6f9dbbdcfabb457be4e84510 (patch) | |
tree | 86bff51c9d4814ba6c773b8b9e8341897a1064d6 | |
parent | cd57e576b1ad28f3a0b25104ab53144165620024 (diff) | |
download | draklive-5e911a37d0470f3b6f9dbbdcfabb457be4e84510.tar draklive-5e911a37d0470f3b6f9dbbdcfabb457be4e84510.tar.gz draklive-5e911a37d0470f3b6f9dbbdcfabb457be4e84510.tar.bz2 draklive-5e911a37d0470f3b6f9dbbdcfabb457be4e84510.tar.xz draklive-5e911a37d0470f3b6f9dbbdcfabb457be4e84510.zip |
don't check symlinks when looking for kernels (fix matching vmlinuz-tmb-desktop586)
-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; |