diff options
| author | nic <ra@afu.re> | 2025-05-05 10:59:25 -0400 |
|---|---|---|
| committer | nic <ra@afu.re> | 2025-05-05 10:59:25 -0400 |
| commit | 21ae09ada9d367994b3a00c14bce5836a806b899 (patch) | |
| tree | 7572094d84b9c185245c84d3dea90e39932e7dcc /cs/Gentoo/kernel_update.md | |
| parent | 0567d6cd88c593b7d69df371a9804fa384c4b5d6 (diff) | |
Auto from nzxt - Mon 05 May 2025 10:59:25 AM EDT
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 |
