From 21ae09ada9d367994b3a00c14bce5836a806b899 Mon Sep 17 00:00:00 2001 From: nic Date: Mon, 5 May 2025 10:59:25 -0400 Subject: Auto from nzxt - Mon 05 May 2025 10:59:25 AM EDT --- cs/Gentoo/kernel_update.md | 49 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 cs/Gentoo/kernel_update.md (limited to 'cs/Gentoo/kernel_update.md') 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 -- cgit v1.2.3