Gentoo - Kernel Update

No comments | Add new comment

Published: 15th of November 2020 | Tags: Kernel, Gentoo

root ~ # emerge -p gentoo-sources
root ~ # [ebuild U] sys-kernel/gentoo-sources-5.4.72
root ~ # eselect kernel list ... switch to new kernel ...
Available kernel symlink targets:
   [1] linux-5.4.28-gentoo *
   [2] linux-5.4.72-gentoo
root ~ # eselect kernel set 2
root ~ # cd /usr/src/linux
root ~ # cp ../linux-5.4.72-gentoo/.config ... copy config from previous kernel ...
root ~ # make menuconfig ... check your new config and save ...
root ~ # make && make modules_install
root ~ # make install
Then run Grub2 configuration script
root ~ # grub-mkconfig -o /boot/grub/grub.cfg
Generating grub.cfg ...
Found linux image: /boot/kernel-5.4.72-gentoo
done
After kernel upgrade you will need recompile some modules...
root ~ # emerge -p @module-rebuild ... check what will be updated ...
root ~ # emerge @module-rebuild

Reboot!
Grub automatically select latest kernel for boot ...

No comments

Leave Reply
< Back to list of posts