Talk:Genkernel

From Gentoo Wiki
Jump to:navigation Jump to:search
Note
This is a Talk page - please see the documentation about using talk pages. Add newer comments below older ones, sign comments using four tildes (~~~~), and indent successive comments with colons (:). Add new sections at the bottom of the page, under a heading (== ==). Please remember to mark sections as "open for discussion" using {{talk|open}}, so they will show up in the list of open discussions.

Decryption key

Talk status
This discussion is still ongoing as of 2022-01-18.

End where is the decryption key? — The preceding unsigned comment was added by Mlipocky (talkcontribs) 09:58, January 15, 2022‎

No idea what you are talking about, mate. Can you add some clarity to your inquiry? I'll close for now until you do. Thanks! --Maffblaster (talk) 08:24, 18 January 2022 (UTC)
Well, I've unsuccessfully spent several hours to figure out where to put the key to decrypt root LUKS partition on boot. No mention about it. — The preceding unsigned comment was added by Mlipocky (talkcontribs)
The genkernel initramfs expects the encryption key file to exist on an unencrypted device, such as a flash drive, using crypt_root_key= pointing to a file relative to the root of said device and crypt_root_keydev= as the device itself. (Optionally root_keydev_fstype= to load a file system module.) Also, please sign your comments in the future. --Grknight (talk) 21:35, 18 January 2022 (UTC)

Monolithic Kernel (or Initramfs-Free Kernel)

Talk status
This discussion is done as of 2023-02-20.

What should the wiki page title be for building a kernel that is a standalone bootup with no initramfs(/initramd). Just a kernel build toward a straight shooter. Egberts (talk) 23:02, 29 July 2022 (UTC)

"Monolithic kernel" sounds like a good name to me. --Maffblaster (talk) 10:19, 20 February 2023 (UTC)
A monolithic kernel exists; and it is a kernel where you have disabled module support; so all is configured static [*] into the kernel; and kernel is not able to load any module later at runtime; you use it if you want to build an UKI (unified kernel image) ... and/or for security reasons. I am using such a kernel. A modular kernel without using an initramfs is just a "normal kernel". --Pietinger 12:01, 20 February 2023 (UTC)

`CFLAGS` for Linux kernel

Talk status
This discussion is done as of 2023-02-20.

Where can one find the ability to pass an arch-specific compiler settings for gcc/c++ in `genkernel`? Egberts (talk) 16:15, 29 September 2022 (UTC)

If you're not talking about the "Low Level Compile Settings" section in /etc/genkernel.conf, then you're probably either looking for the default system-wide values which get sourced from /etc/portage/make.conf, just like everything else, or the Kernel's kbuild system which you can read about upstream: https://www.kernel.org/doc/html/latest/kbuild/kbuild.html#cflags-kernel
If you learn something new and it's missing from this article, please contribute. Thank you, --Maffblaster (talk) 10:25, 20 February 2023 (UTC)