Canalblog
Editer l'article Suivre ce blog Administration + Créer mon blog
Publicité
DebSousDeb - Débuter sous Debian
Newsletter
5 mai 2007

Mise à jour du noyau : passage d'un 2.4.27 à un 2.6.8

Comme vous le saviez peut-être si vous avez lu l'article présentant la configuration de ma machine, j'étais en noyau 2.4 et plus précisément en 2.4.27-2-k7.  Officiellement , le noyau de  2.6.21 est sorti  le 26 avril 2007.  Ce qui signifie que j'ai un retard énorme au niveau de ma configuration.

Comme ma machine était très stable et que je l'utilise régulièrement, je n'avais pas encore ressenti le besoin de faire de mise à jour du kernel. Avec la sortie officielle de la nouvelle Debian, il paraît par contre difficile d'envisager une migration de Sarge vers Etch sans envisager de passer en 2.6 qui fait partie des pré-requis.

Je m'y suis donc mis aujourd'hui et après quelques essais infructueux, tout s'est très bien passé.

J'ai épuré au maximum pour fichier /etc/apt/sources.list.

Voici son contenu :
deb http://ftp2.fr.debian.org/debian/ sarge main contrib non-free
deb-src http://ftp2.fr.debian.org/debian/ sarge main contrib non-free
deb http://security.debian.org/ sarge/updates main contrib non-free
deb http://security.debian.org/ sarge/updates main contrib

Ensuite une petit mise à jour de ma base apt :
#apt-get update

A partir de ce moment là, j'ai fait une recherche pour voir les noyaux disponibles sous sarge :
#apt-cache search --names-only "kernel-image"

Parmi toutes les versions, voici celle que j'ai retenue :
kernel-image-2.6-k7 - Linux kernel image for version 2.6 on AMD K7

Elle s'appuie en fait sur un noyau 2.6.8-3, comme le montre la commande apt-cache show
#apt-cache show kernel-image-2.6-k7
Package: kernel-image-2.6-k7
Priority: optional
Section: base
Installed-Size: 32
Maintainer: Debian kernel team <debian-kernel@lists.debian.org>
Architecture: i386
Source: kernel-latest-2.6-i386
Version: 101sarge1
Depends: kernel-image-2.6.8-3-k7
Filename: pool/main/k/kernel-latest-2.6-i386/kernel-image-2.6-k7_101sarge1_i386.deb
Size: 2164
MD5sum: cbd1dd8a0dc39c35598c131e0473ce46
SHA1: 2346bba216185cf7b9e46eeaf3bc7d8748f80831
SHA256: 3e0212f740b06ddf143b0fb1e3b67bc05605c5c937935a9a2ed6b7740696becf
Description: Linux kernel image for version 2.6 on AMD K7.
This package will always depend on the latest 2.6 kernel image available
for AMD Duron/Athlon.

Avant de me lancer dans l'installation du nouveau noyau, je fais une petite simulation pour voir ce que fera l'installation du paquet :
# apt-get install -s kernel-image-2.6-k7
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  kernel-image-2.6.8-3-k7
Suggested packages:
  lilo kernel-doc-2.6.8
The following NEW packages will be installed:
  kernel-image-2.6-k7 kernel-image-2.6.8-3-k7
0 upgraded, 2 newly installed, 0 to remove and 153 not upgraded.
1 not fully installed or removed.
Inst kernel-image-2.6.8-3-k7 (2.6.8-16sarge6 Debian:3.1r6/oldstable, Debian-Security:3.1/oldstable)
Inst kernel-image-2.6-k7 (101sarge1 Debian:3.1r6/oldstable, Debian-Security:3.1/oldstable)
Conf gdm (2.6.0.8-1sarge2 Debian:3.1r6/oldstable, Debian-Security:3.1/oldstable)
Conf kernel-image-2.6.8-3-k7 (2.6.8-16sarge6 Debian:3.1r6/oldstable, Debian-Security:3.1/oldstable)
Conf kernel-image-2.6-k7 (101sarge1 Debian:3.1r6/oldstable, Debian-Security:3.1/oldstable

A partir de là je l'ance l'installation :
# apt-get install  kernel-image-2.6-k7
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  kernel-image-2.6.8-3-k7
Suggested packages:
  lilo kernel-doc-2.6.8
The following NEW packages will be installed:
  kernel-image-2.6-k7 kernel-image-2.6.8-3-k7
0 upgraded, 2 newly installed, 0 to remove and 153 not upgraded.
1 not fully installed or removed.
Need to get 15.3MB of archives.
After unpacking 45.2MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp2.fr.debian.org sarge/main kernel-image-2.6.8-3-k7 2.6.8-16sarge6 [15.3MB]
Get:2 http://ftp2.fr.debian.org sarge/main kernel-image-2.6-k7 101sarge1 [2164B]                                                                                                   
Fetched 15.3MB in 41m13s (6175B/s)                   
debconf: unable to initialize frontend: Gnome
debconf: (Unable to load Gnome -- is libgnome2-perl installed?)
debconf: falling back to frontend: Dialog
Selecting previously deselected package kernel-image-2.6.8-3-k7.
(Reading database ... 105472 files and directories currently installed.)
Unpacking kernel-image-2.6.8-3-k7 (from .../kernel-image-2.6.8-3-k7_2.6.8-16sarge6_i386.deb) ...
Selecting previously deselected package kernel-image-2.6-k7.
Unpacking kernel-image-2.6-k7 (from .../kernel-image-2.6-k7_101sarge1_i386.deb) ...
Setting up gdm (2.6.0.8-1) ...
debconf: unable to initialize frontend: Gnome
debconf: (Unable to load Gnome -- is libgnome2-perl installed?)
debconf: falling back to frontend: Dialog
Reloading GNOME Display Manager configuration.  Changes will take effect
when all current X sessions have ended.

Setting up kernel-image-2.6.8-3-k7 (2.6.8-16sarge6) ...
Searching for GRUB installation directory ... found: /boot/grub .
Testing for an existing GRUB menu.list file... found: /boot/grub/menu.lst .
Searching for splash image... none found, skipping...
Found kernel: /boot/vmlinuz-2.6.8-3-k7
Found kernel: /boot/vmlinuz-2.4.27-2-k7
Updating /boot/grub/menu.lst ... done

Ensuite un petit reboot
Après le reboot on vérifie si le kernel utilisé est bien le nouveau :
#uname -r
2.6.8-3-k7

Publicité
Commentaires
DebSousDeb - Débuter sous Debian
Publicité
Publicité