summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-04-25 09:11:10 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-04-25 09:11:10 +0000
commit5c1e0acc07b75cc12075cc3273c66d099f81bdbf (patch)
treefa517cf79908e9ad988d9e0d9a67ef19a7b611eb
parent057265cdc4d249bbabb9025e506b987750d82b03 (diff)
downloaddrakx-5c1e0acc07b75cc12075cc3273c66d099f81bdbf.tar
drakx-5c1e0acc07b75cc12075cc3273c66d099f81bdbf.tar.gz
drakx-5c1e0acc07b75cc12075cc3273c66d099f81bdbf.tar.bz2
drakx-5c1e0acc07b75cc12075cc3273c66d099f81bdbf.tar.xz
drakx-5c1e0acc07b75cc12075cc3273c66d099f81bdbf.zip
fix comparing kernel version greater than 6.8
-rw-r--r--perl-install/bootloader.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index b984708a4..e548dfdc7 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -475,7 +475,8 @@ sub add_kernel {
#- normalize append and handle special options
{
my ($simple, $dict) = unpack_append("$bootloader->{perImageAppend} $v->{append}");
- if (-e "$::prefix/sbin/udev" && $kernel_str->{version} =~ /^2\.(\d+\.\d+)/ && $1 >= 6.8) {
+ if (-e "$::prefix/sbin/udev" && $kernel_str->{version} =~ /^2\.(\d+)\.(\d+)/ &&
+ ($1 > 6 || $1 == 6 && $2 >= 8)) {
log::l("it is a recent kernel, so we remove any existing devfs= kernel option to enable udev");
@$dict = grep { $_->[0] ne 'devfs' } @$dict;
}