SME8 stick to kernel version

From SME Server
Jump to navigationJump to search
PythonIcon.png Skill level: Medium
The instructions on this page require a basic knowledge of linux.


The final SME8 ships with kernel 2.6.18-308.4.1.el5. Newer kernel versions become available through updates regularly, but you may want to stick a certain kernel version. Sometimes kernel version speed ahead of RPM packages not being compatible yet with the latest kernel version.

Here is a little simple script that will update to a certain kernel version (kernel 2.6.18-308.16.1.el5 in this example) from vanilla SME8, and will disable future kernel upgrades until you decide otherwise:

#!/bin/sh
clear
echo Upgrading and fixing to kernel-2.6.18-308.16.1.el5…
yum -y install kernel-2.6.18-308.16.1.el5
touch 10main_nokernel
echo exclude=kernel* > 10main_nokernel
mv 10main_nokernel /etc/e-smith/templates/etc/yum.conf/
expand-template /etc/yum.conf
yum -y update
yum -y remove kernel-2.6.18-308.4.1.el5
yum clean all
signal-event post-upgrade; signal-event reboot
 


From the command prompt:

1. nano update-kernel.sh

2. copy and paste the above script, save

3. chmod 755 update-kernel.sh

4. run the script by: './update-kernel'