|
|
Mise à jour du noyau II - RPM
Page précédente : Mise à jour du noyau I - Premiers pas Page suivante : Mise à jour du noyau III - Les sources Index de la section Administration avancée du système - Index de la Base de Connaissances (All steps require 'root' privileges.) So, you have downloaded the needed RPMs mentioned on the Preparations page and you are ready to go for it. Take your time. Don't panic if you encounter errors: the current kernel is stored safely in system memory and on your disk. As long as you install the new kernel along the old one and you have a boot floppy at hand, nothing serious can happen. InstallationDownload all the kernel RPMs you need to a local directory, 'cd' to that directory, switch to the 'root' account and run rpm -i kernel* or urpmi kernel* If you got all the packages, that should work out fine. You should use 'urpmi' instead of pure 'rpm'. Once you have successfully rebooted with the new kernel, you should generate a new boot floppy via the Mandrake Control Center or the 'mkbootdisk' script. Index de la section Administration avancée du système - Index de la Base de Connaissances Checking System ConfigurationUsually you don't have to do anything at all with the exception of those who are booting from RAID or SCSI devices: the RPMs do all the necessary configuration upon installation and the system initscripts check upon each boot which kernel you are booting and are changing the symlinks in the '/boot' directory accordingly. If you need SCSI or RAID devices at boot time, create a new 'initrd image': mkinitrd /boot/{initrd image} {new kernel version}
You can choose any name for {initrd image} as long as it is different from the old one. You have then to add entries for this image either to '/etc/lilo.conf' or '/boot/grub/menu.lst'. Older versions of M featured a standard 'initrd' entry in '/etc/lilo.conf', remove it if you don't need it. Index de la section Administration avancée du système - Index de la Base de Connaissances Checking ~LiLo Boot loader ConfigurationOpen the file '/etc/lilo.conf' in your favorite editor or use '~DrakBoot' in the Mandrake Control Center. You will notice that it now contains another entry for the new kernel at the end of the file. label default
If you are doing this in an editor, do not forget to run the lilo Index de la section Administration avancée du système - Index de la Base de Connaissances Checking GNU GRUB Boot loader ConfigurationInstalling a new kernel will add an entry to '/boot/grub/menu.lst' with the kernel version as the menu entry. A standard 'menu.lst' file will then look like this: timeout 5 color black/cyan yellow/cyan i18n (hd0,0)/boot/grub/messages keytable (hd0,0)/boot/us.klt default 0 title Linux kernel (hd0,0)/boot/vmlinuz root=/dev/hda1 {2 more entries} title 2.2.16-9mdk kernel (hd0,0)/boot/vmlinuz-2.2.16-9mdk root=/dev/hda1 (The line kernel (hd0,0)/boot/vmlinuz root=/dev/hda1 You might want to adjust some things, either by loading '/boot/grub/menu.lst' into an editor or by using '~DrakBoot' in the Mandrake Control Center:
Having rebooted, run uname -r If everything has worked out fine, you can delete the old kernel RPMs with rpm -e urpme Index de la section Administration avancée du système - Index de la Base de Connaissances Rebuilding & Customizing the Mandrake Kernel SRPM(Contributed by Mandrake Linux user Roger with kudos to the Mandrake Kernel team) Prerequisites:
It will take along time to build as the mdk kernel.spec wants to build everything (documentation, enterprise, smp, up, secure, etc). You can further tell the kernel.spec not to build what you don't want by either editing the top of the kernel.spec file yourself or doing: rpm -ba ––without enterprise ––without smp (the top of the kernel.spec file contains complete list of options) If you have an i686 platform, the rpm build might complain something about the arch. You'll need to: cp /usr/src/RPM/SOURCES/kernel-2.4.xx.x-i586.config In Closure: So, I usually only worry about providing explicit support for my i686 cpu's and maybe to adjust the APM module. I keep it simple in case the build does break. This way, I'll have an easier type debugging. Note: Users can also denote which patches they want omitted from the build process, but this is more of an advanced topic as it requires one to actually READ & UNDERSTAND the kernel.spec scripting. Usually, tho, if a person wants to omit a certain patch (because of conflicts with a 3rd party driver or "what not"), they would simply comment-out the patch# listed within the top of the kernel.spec after tracing the patch number back to the "title of the patch source". Next Item: Upgrading via compiling Autres ressourcesMdk Reference, 14 man lilo.conf info grub Page suivante : Mise à jour du noyau III - Les sources Revision / Modified: Sep. 18, 2001 / May 14, 2002 Author: Tom Berger Legal: This page is covered by the GNU Free Documentation License . Standard disclaimers of warranty apply. Copyright LSTB and Mandrakesoft. |