Gentoo Kernel Upgrade notes
Probably not relevant to anyone other than myself.
- check portage version (you are ok unless you have a 2.0.x.x version; see elsewhere for help with that):
# emerge portage -vpThese are the packages that would be merged, in order:Calculating dependencies… done!
[ebuild R ] sys-apps/portage-2.1.4.4 USE="-build -doc -epydoc (-selinux)" LINGUAS="-pl" 0 kBTotal: 1 package (1 reinstall), Size of downloads: 0 kB
- check the available kernel source:
# emerge gentoo-sources -vpThese are the packages that would be merged, in order:Calculating dependencies… done!
[ebuild R ] sys-kernel/gentoo-sources-2.6.25-r4 USE="-build -symlink*" 0 kBTotal: 1 package (1 reinstall), Size of downloads: 0 kB
- if it looks right, do it:
# USE=symlink emerge gentoo-sources
- optionally be fussy about the version number:
# USE=symlink emerge =gentoo-sources-2.6.25-r7
- get the config from the previous verion:
# mount /boot
# cd /usr/src/linux
# cp /boot/config-2.6.25-gentoo-r4 .config
- update the config, this asks you the questions that are not satisfied from the previous configuration, you can usually just accept the defaults unless something is really obviously wrong:
# make
# make modules_install
# cp arch/x86_64/boot/bzImage /boot/kernel-2.6.25-gentoo-r7
# cp .config /boot/config-2.6.25-gentoo-r7
- fix /boot/grub/grub.conf to include your new kernel, and if you feel lucky, make it the default
- done!