diff options
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/install_any.pm | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm index 93d70c3f8..09e567af4 100644 --- a/perl-install/install_any.pm +++ b/perl-install/install_any.pm @@ -227,11 +227,8 @@ sub allowNVIDIA_rpms { #-###################################################################################### sub kernelVersion { my ($o) = @_; - require pkgs; - my $p = pkgs::packageByName($o->{packages}, "kernel"); - $p ||= pkgs::packageByName($o->{packages}, "kernel22"); - $p or die "I couldn't find the kernel package!"; - pkgs::packageVersion($p) . "-" . pkgs::packageRelease($p); + my $kernel = readlink "$o->{prefix}/boot/vmlinuz" || first(all("$o->{prefix}/boot")); + first($kernel =~ /vmlinuz-(.*)/); } |