diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-04-25 10:20:10 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-04-25 10:20:10 +0000 |
commit | 7570b704830f509a0e1d02be0f539d7d55d75890 (patch) | |
tree | 930c49f4d145fe427626b1d9cd9e8f90a5a89e87 /perl-install | |
parent | ed90eab03bfceee7ae91700d4451fc8ddb54f8cc (diff) | |
download | drakx-backup-do-not-use-7570b704830f509a0e1d02be0f539d7d55d75890.tar drakx-backup-do-not-use-7570b704830f509a0e1d02be0f539d7d55d75890.tar.gz drakx-backup-do-not-use-7570b704830f509a0e1d02be0f539d7d55d75890.tar.bz2 drakx-backup-do-not-use-7570b704830f509a0e1d02be0f539d7d55d75890.tar.xz drakx-backup-do-not-use-7570b704830f509a0e1d02be0f539d7d55d75890.zip |
using c::rpmvercmp is cleaner
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/bootloader.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm index e548dfdc7..0e2b7a010 100644 --- a/perl-install/bootloader.pm +++ b/perl-install/bootloader.pm @@ -475,8 +475,7 @@ 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 || $1 == 6 && $2 >= 8)) { + if (-e "$::prefix/sbin/udev" && $kernel_str->{version} =~ /(2\.\d+\.\d+)/ && c::rpmvercmp($1, '2.6.8') >= 0) { log::l("it is a recent kernel, so we remove any existing devfs= kernel option to enable udev"); @$dict = grep { $_->[0] ne 'devfs' } @$dict; } |