Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 910264 - sys-kernel/gentoo-kernel - copy .config from /usr/src/linux
Summary: sys-kernel/gentoo-kernel - copy .config from /usr/src/linux
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Distribution Kernel Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-12 14:24 UTC by C. Wijtmans
Modified: 2023-07-14 13:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.