View previous topic :: View next topic |
Author |
Message |
galomi n00b
Joined: 12 Mar 2024 Posts: 3
|
Posted: Wed Apr 03, 2024 6:29 am Post subject: menuconfig issues |
|
|
Hello. I used genkernel and the manual make method to compile my kernel on different ocassions. My issue however is that my menuconfig doesnt get applied when using genkernel and thus I cannot configure my kernel for apparmor. How can I do that with genkernel? When I tried this with the make method my pc did not boot but i suspect that had something to do with my initramfs made with dracut and luks or lvm. Do genkernel --luks and --lvm options influence the initramfs or the kernel config as well? Are they applied before or after menuconfig? After I run menuconfig, genkernel outputs 'kernel config was not modified' even if I save the config. Also how do I get the default menuconfig config back? I tried make defconfig but I still get my old menuconfig... |
|
Back to top |
|
|
gorg86 Apprentice
Joined: 20 May 2011 Posts: 299
|
Posted: Sun Apr 07, 2024 5:32 pm Post subject: |
|
|
When you invoke Code: | genkernel --menuconfig all | and save your config, then it's in /etc/kernels/
Your current kernel version and the config file name have to match for genkernel to use it.
Filenames look like this Code: | kernel-config-6.8.3-gentoo-x86_64 |
|
|
Back to top |
|
|
Duncan Mac Leod Guru
Joined: 02 May 2004 Posts: 312 Location: Germany
|
Posted: Sun Apr 07, 2024 5:40 pm Post subject: |
|
|
Code: | genkernel --menuconfig all |
Use the save option and save your kernel, i.e. /home/youruser/kernel_x64_5_10_212.config
End menuconfig with ctrl+c
Copy your saved config to your kernel source
Code: | cp /home/youruser/kernel_x64_5_10_212.config /usr/src/linux/.config |
Run genkernel with...
Code: | genkernel --no-clean all |
|
|
Back to top |
|
|
|