Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
menuconfig issues
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
galomi
n00b
n00b


Joined: 12 Mar 2024
Posts: 3

PostPosted: Wed Apr 03, 2024 6:29 am    Post subject: menuconfig issues Reply with quote

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
View user's profile Send private message
gorg86
Apprentice
Apprentice


Joined: 20 May 2011
Posts: 299

PostPosted: Sun Apr 07, 2024 5:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
Duncan Mac Leod
Guru
Guru


Joined: 02 May 2004
Posts: 312
Location: Germany

PostPosted: Sun Apr 07, 2024 5:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum