Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 936676 - Feature request: Catalyst dist-kernel kernel config option
Summary: Feature request: Catalyst dist-kernel kernel config option
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: All ISO (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Release Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-26 19:43 UTC by immolo
Modified: 2024-08-22 18:39 UTC (History)
2 users (show)

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


Attachments
Draft idea for patch (Not working) (catalyst-dkconfig.patch,977 bytes, patch)
2024-07-26 19:43 UTC, immolo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description immolo 2024-07-26 19:43:53 UTC
Created attachment 898381 [details, diff]
Draft idea for patch (Not working)

As part of the project to move all Live media images from Genkernel to dist-kernel, we have now reached a blocker requiring a feature that allows a custom kconfig to be copied to /etc/config.d/kernel before sys-kernel/gentoo-kernel is emerged in the second stage of livecd creation in Catalyst.

Overview idea:

1. In a spec file have the ability to set boot/kernel/dkconfig: <location of config in releng dir>

2. Move this to /etc/config.d/kernel in catalyst before kernel is emerged

3. Compile kernel as already exists in code

Area of interest:

Code change likely needs to be around the area of https://github.com/gentoo/catalyst/blob/daa4b94f6ef54ac9325de6d9e0a30415400e9ed9/catalyst/base/stagebase.py#L1663

Attempt made so far:

oldfashionedcow from IRC has made a quick patch which seems to work but causes a failure during kernel compiling. This might be of interest as a starting point but I lack the skills in this area to be able to probe and confirm.
Comment 1 Larry the Git Cow gentoo-dev 2024-08-22 18:39:58 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/catalyst.git/commit/?id=836744689e0cc09a1a0a89b7272142d5dfb99bd4

commit 836744689e0cc09a1a0a89b7272142d5dfb99bd4
Author:     Ian Jordan <immoloism@gmail.com>
AuthorDate: 2024-07-30 18:27:34 +0000
Commit:     Ben Kohler <bkohler@gentoo.org>
CommitDate: 2024-08-22 18:39:53 +0000

    Add Dist-kernel kconfig support
    
    Based on the orginal patch by oldfashionedcow to add the abilty for
    a user to set a custom kconfig for their livecd to be moved to
    /etc/kernel/config.d/ before sys-kernel/gentoo-kernel is emerged.
    
    Syntax is the same as the one used for Genkernel kconfigs.
    
    Closes: https://bugs.gentoo.org/936676
    
    Co-authored-by: Rahul Sandh <rahul@sandhuservices.dev>
    Co-authored-by: Christopher Fore <csfore@posteo.net>
    
    Signed-off-by: Ian Jordan <immoloism@gmail.com>
    Closes: https://github.com/gentoo/catalyst/pull/21
    Signed-off-by: Ben Kohler <bkohler@gentoo.org>

 catalyst/base/stagebase.py | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)