Gentoo kernel upgrade guide
From thelinuxwiki
Contents |
manual kernel upgrade using make oldconfig
cd /usr/src/linux ls -l .config eselect kernel set 3 cp -a .config /usr/src/linux/ cd /usr/src/linux make oldconfig make && make modules_install ls -l /boot/ cp -a arch/x86/boot/bzImage /boot/kernel-`ls -l /usr/src/linux |awk -F "> " '{print $2}'` rm /boot/vmlinuz.old oldkern=`ls -l /boot/vmlinuz | awk '{ print $NF }'`; ln -s $oldkern /boot/vmlinuz.old rm /boot/vmlinuz newkern=/boot/kernel-`ls -l /usr/src/linux |awk -F "> " '{print $2}'`; ln -s $newkern /boot/vmlinuz reboot
genkernel upgrade commands
linux # eselect kernel list linux # eselect kernel set number linux # cd /usr/src/linux linux # cp -a /etc/kernels/kernel-config-x86_64-3.0.6-gentoo .config linux # make oldconfig linux # cp -a .config /etc/kernels/kernel-config-x86_64-3.1.6-gentoo linux # cp /boot/grub/grub.conf /boot/grub/grub.conf.bak linux # genkernel --bootloader=grub all # genkernel --no-clean --lvm --luks all
Error:
- No current 'title' entries found in your grub.conf...skipping update
linux # ls -l /boot/
rm initramfs.old rm vmlinuz ln -s kernel-genkernel-x86_64-3.0.6-gentoo vmlinuz.old ln -s initramfs-genkernel-x86_64-3.0.6-gentoo initramfs.old ln -s kernel-genkernel-x86_64-3.1.6-gentoo vmlinuz ln -s kernel-genkernel-x86_64-3.1.6-gentoo vmlinuz vi /boot/grub/menu.lst
get current kernel symlink
ls -l /usr/src/ | grep lrw | awk '{print $11}'
Loading kernel modules on boot
configure /etc/conf.d/modules file (base layout 2) example loading of e1000 NIC driver module:
modules="e1000"
eselect script
cd /usr/src/linux; eselect kernel list; printf "select newest kernel version:"; read KERNEL_SET; export KERNEL_SET; echo "your choice = $KERNEL_SET"; eselect kernel set $KERNEL_SET; echo "current kernel symlink is(denoted by asterik)..."; eselect kernel list;