Re: [suse-sles-e] keep old kernel after kernel upgrade

From: Lars Mller (lmuelle_at_SuSE.de)
Date: Thu Mar 09 2006 - 22:27:10 CET


Date: Thu, 9 Mar 2006 22:27:10 +0100
From: Lars Mller <lmuelle@SuSE.de>
Message-ID: <20060309212710.GD7489@gray.suse.de>
Subject: Re: [suse-sles-e] keep old kernel after kernel upgrade


On Thu, Mar 09, 2006 at 11:34:50AM -0800, Alexei_Roudnev wrote:
> Yes, it is all YOU bug (it do not keep previous kernel correctly). I better
> prefer to specify that some kernels are _sticked_.
>
> Unfortunately, there are more dependencies - for example, /lib/modules must
> have modules from kernel, and mkinitrd changed between kernel versions.

This is solved with the kernel RPMs provided by SuSE since UL 1/ SLES 8
SP 2 IIRC. The following output is from a current SLES 9 system:

l /lib/modules/
total 4
drwxr-xr-x 7 root root 224 Mar 9 22:18 ./
drwxr-xr-x 12 root root 3168 Mar 7 18:16 ../
drwxr-xr-x 6 root root 528 Mar 7 18:21 2.6.5-7.244-bigsmp/
drwxr-xr-x 6 root root 528 Mar 7 18:38 2.6.5-7.252-bigsmp/

l /boot/initrd-*
-rw-r--r-- 1 root root 1574915 Mar 7 18:21
/boot/initrd-2.6.5-7.244-bigsmp
-rw-r--r-- 1 root root 1573861 Mar 7 18:22
/boot/initrd-2.6.5-7.252-bigsmp

l /boot/initrd /boot/initrd.previous
lrwxrwxrwx 1 root root 25 Mar 7 18:22 /boot/initrd ->
initrd-2.6.5-7.252-bigsmp
lrwxrwxrwx 1 root root 25 Mar 7 18:21 /boot/initrd.previous ->
initrd-2.6.5-7.244-bigsmp

The same is valid for the vmlinuz files.

All you have to do, to have even the previous kernel as a boot target in
grub or lilo, is to duplicate the existiong Linux target, rename it to
previous and append '.previous' to the vmlinuz and initrd files.

rpm -qa --last | grep ^kernel
kernel-source-2.6.5-7.252 Tue Mar 7 18:23:04 2006
kernel-bigsmp-2.6.5-7.252 Tue Mar 7 18:22:05 2006
kernel-bigsmp-2.6.5-7.244 Tue Mar 7 18:21:47 2006

And it is even possible to install several kernel-source versions.

> (RHEL have otehr installation strategy - when I instal new kernel, it adds
> it into the menu but not remove old kernels and menu items. It allows to add
> / remove kernels easily.)

We're working on the next release ... ;)

Lars

-- 
Lars Müller [ˈlaː(r)z ˈmʏlɐ]
Samba Team
SuSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany




This archive was generated by hypermail 2.1.7 : Thu Mar 09 2006 - 22:27:14 CET