Thursday, 11 June 2015

Kernel up-gradation on OpenSUSE(13.2) to latest kernel (4.1)

OpenSUSE 13.2 had it's kernel version 3.16.6-2, I have upgraded the latest kernel version 4.1.0-rc7-1. 

Below are the steps involved :

1. Make sure you retain multiple kernel configurations in /etc/zypp/zypp.conf which includes the oldest. 
2. Add kernel HEAD repository and perform distribution upgrade from kernel HEAD repository.
3. Reboot the system.

# tail -2 /etc/zypp/zypp.conf
multiversion = provides:multiversion(kernel)
multiversion.kernels = latest,latest-1,running,oldest
#

Adding repository 'kernel-repo' ..................................................................................................................................[done]
Repository 'kernel-repo' successfully added
Enabled: Yes
Autorefresh: Yes
GPG check: Yes
#

# zypper lr kernel-repo
Alias          : kernel-repo
Name           : kernel-repo
Enabled        : Yes
Priority       : 99
Auto-refresh   : On
Keep Packages  : Off
Type           : NONE
GPG Check      : On
GPG Key URI    :
Path Prefix    :
Parent Service :
Repo Info Path : /etc/zypp/repos.d/kernel-repo.repo
MD Cache Path  : /var/cache/zypp/raw/kernel-repo
#

# zypper dist-upgrade -r kernel-repo
Retrieving repository 'kernel-repo' metadata ------------------------------------------------------------------------------------------------------------------------[\]

New repository or package signing key received:

  Repository:       kernel-repo
  Key Name:         Kernel OBS Project <Kernel@build.opensuse.org>
  Key Fingerprint:  4529410A B52F94C4 03BAB484 ECEEF210 03579C1D
  Key Created:      Wed Apr 22 17:55:51 2015
  Key Expires:      Fri Jun 30 17:55:51 2017
  Rpm Name:         gpg-pubkey-03579c1d-5537934f


Do you want to reject the key, trust temporarily, or trust always? [r/t/a/? shows all options] (r): a
Retrieving repository 'kernel-repo' metadata .....................................................................................................................[done]
Building repository 'kernel-repo' cache ..........................................................................................................................[done]
Loading repository data...
Reading installed packages...
Computing distribution upgrade...

The following NEW package is going to be installed:
  kernel-desktop-4.1.rc7-1.1.gabe587d

1 new package to install.
Overall download size: 48.1 MiB. Already cached: 0 B  After the operation, additional 221.3 MiB will be used.
Continue? [y/n/? shows all options] (y): y
Retrieving package kernel-desktop-4.1.rc7-1.1.gabe587d.x86_64                                                                      (1/1),  48.1 MiB (221.3 MiB unpacked)
Retrieving: kernel-desktop-4.1.rc7-1.1.gabe587d.x86_64.rpm .........................................................................................[done (365.2 KiB/s)]
Checking for file conflicts: .....................................................................................................................................[done]
(1/1) Installing: kernel-desktop-4.1.rc7-1.1.gabe587d ............................................................................................................[done]
Additional rpm output:
Creating initrd: /boot/initrd-4.1.0-rc7-1.gabe587d-desktop
Executing: /usr/bin/dracut --logfile /var/log/YaST2/mkinitrd.log --force /boot/initrd-4.1.0-rc7-1.gabe587d-desktop 4.1.0-rc7-1.gabe587d-desktop
*** Including module: bash ***
*** Including module: warpclock ***
*** Including module: i18n ***
*** Including module: ifcfg ***
*** Including module: drm ***
*** Including module: plymouth ***
*** Including module: btrfs ***
*** Including module: kernel-modules ***
Omitting driver i2o_scsi
*** Including module: resume ***
*** Including module: rootfs-block ***
*** Including module: terminfo ***
*** Including module: udev-rules ***
Skipping udev rule: 91-permissions.rules
Skipping udev rule: 80-drivers-modprobe.rules
*** Including module: systemd ***
*** Including module: usrmount ***
*** Including module: base ***
*** Including module: fs-lib ***
*** Including module: shutdown ***
*** Including module: suse ***
*** Including modules done ***
*** Installing kernel module dependencies and firmware ***
*** Installing kernel module dependencies and firmware done ***
*** Resolving executable dependencies ***
*** Resolving executable dependencies done***
*** Hardlinking files ***
*** Hardlinking files done ***
*** Stripping files ***
*** Stripping files done ***
*** Generating early-microcode cpio image ***
*** Store current command line parameters ***
Stored kernel commandline:
 resume=UUID=963537e9-1bf1-49de-b90c-6227ade69572
root=UUID=940ff654-d7da-43f3-a4c6-ed18ecbb231f rootflags=rw,relatime,space_cache rootfstype=btrfs
*** Creating image file ***
*** Creating image file done ***
Update bootloader...
#
- Finally, reboot is required and you would boot up in the latest Linux Kernel 4.1.
# uname -r
4.1.0-rc7-1.gabe587d-desktop
#