diff options
Diffstat (limited to 'cs/Gentoo/kernel_update.md')
| -rw-r--r-- | cs/Gentoo/kernel_update.md | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/cs/Gentoo/kernel_update.md b/cs/Gentoo/kernel_update.md new file mode 100644 index 0000000..0aa8233 --- /dev/null +++ b/cs/Gentoo/kernel_update.md @@ -0,0 +1,49 @@ +cp /usr/src/linux/.config ~/($uname).backup + +emerge gentoo-sources +eselect kernel list +eslect kernel set x + +cd /usr/src/linux +doas make mrproper +cp ~/($uname).backup(oldone but not going to work...) .config + +make olddefconfig +make menuconfig + +x = grep -c ^processor /proc/cpuinfo + +make -j x && make modules_install install + +cp /boot/vmlinuz-x.x.x-gentoo /boot/efi/boot/bootx64.efi + +emerge @module-rebuild # if nvida-drivers + + +# protocol +I have a problem when I run @world update since gentoo-sources is in my world file it update my kernel but does not compile it and it fuck up portage especially to compile nvidia + +1st: delete gentoo-source from world and treat it like portage +aka: emerge -1 + +2nd: choose a lts kernel every update + +# add build & symlink useflag ? post-hook prefered ? + + + + +# post install hook + +0- must know before updating what change have been made + +1- take care of symlink with useflag so every new updated of gentoo-sources point to most recent kernel +su + +make mrproper ?? +make olddefconf ?? + +make -j$(nproc) && make modules_install install + + +cp /boot/vmlinuz-x.x.x$(HOW TO GET IT)-gentoo /boot/efi/boot/bootx64.efi |
