From 6b92c54c1ecc90735f101fafab65d993938d8ee6 Mon Sep 17 00:00:00 2001 From: Nelson Batalha Date: Tue, 31 May 2011 12:57:09 +0200 Subject: [PATCH] Add Kernel 3.0.0 support (bug #369481) --- ChangeLog | 3 +++ defaults/initrd.defaults | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6c402d6..03f20db 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ # Distributed under the GPL v2 # $Id$ + 31 May 2011; Nelson Batalha defaults/initrd.defaults: + Add Kernel 3.0.0 support (bug #369481) + 31 May 2011; Sebastian Pipping genkernel: Output warning in warning color diff --git a/defaults/initrd.defaults b/defaults/initrd.defaults index fd6d9fc..72e8376 100755 --- a/defaults/initrd.defaults +++ b/defaults/initrd.defaults @@ -50,7 +50,7 @@ KMINOR=`echo $KV | cut -f2 -d.` KVER="${KMAJOR}.${KMINOR}" MISCOPTS='debug detect' -if [ "${KMAJOR}" -eq 2 -a "${KMINOR}" -ge '6' ] +if [ "${KMAJOR}" -ge 3 ] || [ "${KMAJOR}" -eq 2 -a "${KMINOR}" -eq '6' ] then KV_2_6_OR_GREATER="yes" fi @@ -59,7 +59,7 @@ QUIET='1' ROOT_LINKS='bin sbin lib lib32 lib64 boot usr opt emul' ROOT_TREES='etc root home var' INSMOD='insmod' -if [ "${KMINOR}" -gt '4' ] +if [ "${KMAJOR}" -ge 3 ] || [ "${KMAJOR}" -eq 2 -a "${KMINOR}" -gt '4' ] then KSUFF='.ko' else -- 2.26.2