Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 910264

Summary: sys-kernel/gentoo-kernel - copy .config from /usr/src/linux
Product: Gentoo Linux Reporter: C. Wijtmans <cj.wijtmans>
Component: Current packagesAssignee: Distribution Kernel Project <dist-kernel>
Status: RESOLVED WONTFIX    
Severity: enhancement CC: mgorny
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description C. Wijtmans 2023-07-12 14:24:25 UTC
savedconfig use flag for kernels seems a bit cumbersome it would be easier if there is a useflag for copying the .config from /usr/src/linux. useflag copyconfig? (php package could use a copyconfig useflag as well tbh)
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-07-13 15:55:53 UTC
We already support 3 different config sources (savedconfig, drop-ins and default config).  Adding fourth option would only add more confusion.  Use a symlink.
Comment 2 C. Wijtmans 2023-07-14 12:49:23 UTC
what do you mean by "drop-ins" and  "default config"? 
And how would i use the symlink? The whole point is i dont want to run a copy command everytime.
Do i make a symlink in savedconfig to /usr/src/linux then use the savedconfig flag?
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-14 12:52:51 UTC
Please see the options listed at https://wiki.gentoo.org/wiki/Project:Distribution_Kernel.

(Note that you don't need to copy it every time for savedconfig, you can just use the filename 'gentoo-kernel'.)
Comment 4 C. Wijtmans 2023-07-14 13:39:44 UTC
So if I did `ln -s /etc/portage/savedconfig/sys-kernel/gentoo-kernel /usr/src/kernel/.config` it would copy .config on emerge with `USE=saveconfig` right? Maybe a trick to add to the documentation page? `/etc/kernel/config.d` seems useful to but not what i was looking for.
Comment 5 C. Wijtmans 2023-07-14 13:42:38 UTC
So if I did `ln -s /usr/src/linux/.config /etc/portage/savedconfig/sys-kernel/gentoo-kernel` it would copy .config on emerge with `USE=savedconfig` right? Maybe a trick to add to the documentation page? `/etc/kernel/config.d` seems useful to but not what i was looking for.