Booting more than one kernel on SUSE Linux Enterprise Server
This document (3086701) is provided subject to the disclaimer at the end of this document.
How to update the kernel and save the previously installed kernel
- Run YOU to update the linux server, but do not do an automatic update, select the option to manually select packages.
- Select all of the desired packages minus the linux kernel packages.
- Finish the update of the linux system.
- Download the kernel packages separately.
- Install the kernel rpm packages from the commandline with the following parameters:
rpm -ivh --force packagename.rpmNote: Do not use the -F option. This option will remove previously installed kernels.
- Next change to the /boot directory and review the symbolic links to make sure they are correct. The install script should have modified initrd and vmlinuz so they point to the new kernel:
vmlinuz ->vmlinuz-2.6.5-7.283-defaultAlong with two new symbolic links (initrd.previous andvmlinuz.previous) pointing to the previous kernel:initrd.previous ->initrd-2.6.5-7.244-defaultTo create the symbolic links manually use the following syntax:
vmlinuz.previous ->vmlinuz-2.6.5-7.244-defaultln -s vmlinuz-2.6.5-7.244-default vmlinuz.previous
ln -s initrd-2.6.5-7.244-default initrd.previous
- Next edit the /boot/grub/menu.lst file and put an entry in here for the previous kernel. You can copy the current entry for the current kernel you are using and modify it. The end result should look similar to:
###Don't change this comment - YaST2 identifier: Original name: linux###
title Linux Previous
kernel (hd0,1)/boot/vmlinuz.previous root=/dev/sda2 vga=0x333 selinux=0 splash=silent resume=/dev/sda1 elevator=cfq showopts
- Reboot the server and validate that the previous kernel shows up in the boot menu and that both kernels are bootable.
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:3086701
- Creation Date: 04-Jan-2007
- Modified Date:04-Mar-2021
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: email@example.com