Conversation
Notices
-
Embed this notice
I would like to tap into the #Gentoo Fediverse mind pool one more time if I could have some advice.
I am currently on the Gentoo-dist bin kernel and would like start compiling and customizing my own kernel, but I have never done anything like that before.
So here are my questions:
- What is the best way to start?
- Are there any good tools/scripts/etc that I should use?
- Is there anything I could/should do to protect myself for goofing up?
Thank you for your time!
-
Embed this notice
@rain When it comes to my custom version of Linux-libre, I first run `make menuconfig` to apply the defaults (although I guess `make localmodconfig` will be useful in including all of the autoloaded modules and saving most of the work) and then I hand configure all relevant option in menuconfig and also disable many legacy things only useful for executing very old proprietary software.
When it's looking pretty good, I run; `make -j$(nproc) && make modules_install && make install && dracut --kver <new version> (for LUKS encrypted storage - I'd prefer it if I could go without an initramfs of course) && grub-mkconfig -o /boot/grub/grub.cfg` and I see if it boots, otherwise I continue shotgun surgery.
-
Embed this notice
@rain Don't remove the kernel you're currently using until you're sure you got the one you built working the way you want. Maybe even then, still keep the distkernel there as a fallback.