openSUSE 11.1 to 11.2 Upgrade: Grub Boot Settings

Firstly, before upgrading your openSUSE box from 11.1 to 11.2, remember that 11.2 comes with PHP 5.3 which is not compatible with Drupal 6 due to the Drupal core reliance on the deprecated ereg() function.

That considered, if you do go ahead, and there are plenty of reasons to do so, then use the zypper instructions here. The problem with the instructions is that they will only take you so far - zypper will not automatically update your boot sequence. Of course, despite that being quite clearly specified in the instructions, somehow I managed to miss it. So when I rebooted after the upgrade, I was a little surprised that my brand new upgrade had some significant and profound problems. Further investigation revealed that I had also missed the fact my boot splash screen hadn't changed and I was still running my old kernel! Doh!

I use grub so my instructions are only pertinent if you too are using grub. As root user, change to your boot directory.

# cd /boot

You will need to add a new entry into the menu.lst file which is in the grub subdirectory, but before you do that you need to be prepared. The boot sequence needs a ramdisk - you may be lucky here and find you already have one, but all I found in the /boot directory was a broken link to the ramdisk. To create a new ramdisk, use the mkinitrd command.
# mkinitrd -k vmlinuz-2.6.31.5-0.1-default -i initrd-2.6.31.5-0.1-default -m System.map-2.6.31.5-0.1-default

This will create your ramdisk. Now time to edit your menu.lst file.
# cd grub

You will need to add an additional boot option. Now yours will definitely be different from mine because it is dependent upon your own computer's disk layout. But you can use mine as a starting point and edit appropriately.
###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 11.2 - 2.6.31.5-0.1-default
    root (hd0,5)
    kernel /boot/vmlinuz-2.6.31.5-0.1-default root=/dev/disk/by-id/ata-TOSHIBA_MK2555GSX_Z8DAF05IS-part6 --HEL:P resume=/dev/disk/by-id/ata-TOSHIBA_MK2555GSX_Z8DAF05IS-part5 splash=silent showopts vga=0x317
    initrd /boot/initrd-2.6.31.5-0.1-default

Save once you have edited for your own disk layout, and openSUSE 11.2 will load successfully.