summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-09-03 08:42:38 +0000
committerOlivier Blin <oblin@mandriva.com>2007-09-03 08:42:38 +0000
commit5e911a37d0470f3b6f9dbbdcfabb457be4e84510 (patch)
tree86bff51c9d4814ba6c773b8b9e8341897a1064d6
parentcd57e576b1ad28f3a0b25104ab53144165620024 (diff)
downloaddraklive-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-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;