Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 740412 - livecd-stage2: Add a "boot/kernel/gentoo/initramfs-generator-override" .spec option
Summary: livecd-stage2: Add a "boot/kernel/gentoo/initramfs-generator-override" .spec ...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: Catalyst (show other bugs)
Hardware: All Linux
: Normal critical
Assignee: Gentoo Catalyst Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-04 20:45 UTC by Kenneth G. Strawn
Modified: 2022-07-23 22:48 UTC (History)
1 user (show)

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


Attachments
What I need to use to work around this bug (callback.sh,181 bytes, application/x-shellscript)
2020-09-04 20:45 UTC, Kenneth G. Strawn
Details
.spec file containing workaround (livedvd-stage2.spec,1.07 KB, text/x-rpm-spec)
2020-09-04 20:47 UTC, Kenneth G. Strawn
Details
What I need to use to work around this bug (callback.sh,252 bytes, application/x-shellscript)
2020-09-04 20:58 UTC, Kenneth G. Strawn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth G. Strawn 2020-09-04 20:45:51 UTC
Created attachment 658418 [details]
What I need to use to work around this bug

Control over the "--callback" passed to genkernel needs to be much more fine-grained in the .spec files than just emerge ― including the option to add something like Dracut to the callback via a .spec option. This is especially true for enabling Plymouth on custom live media thanks to both bug 719968 and the fact that genkernel's native initramfs generator doesn't support Plymouth at all.
Comment 1 Kenneth G. Strawn 2020-09-04 20:47:32 UTC
Created attachment 658420 [details]
.spec file containing workaround

Added some attachments describing all the hoops I have to jump through to try to get Plymouth enabled ― and even then, the result *still* doesn't work as properly as it should.
Comment 2 Kenneth G. Strawn 2020-09-04 20:58:13 UTC
Created attachment 658422 [details]
What I need to use to work around this bug

Need a much cleaner solution than the need to drop a shell script into the portage-confdir as a means to take more fine-grained control over the genkernel callback. The option to use a .spec parameter to add something like Dracut to the callback would be much more helpful.
Comment 3 Kenneth G. Strawn 2020-09-04 21:21:16 UTC
And for the record, livecd/fsscript is of no use here because that isn’t executed until after the initramfs and kernel have already been copied out of the chroot.
Comment 4 Kenneth G. Strawn 2020-09-04 21:26:05 UTC
Basically, this option, if configured, would tell genkernel to make the callback something like:

--callback=“bash -c \”dracut --kver=<kernel version being built> && emerge -qN -kb <boot/gentoo/kernel/packages>\””

In short: there needs to be more choice here.
Comment 5 Kenneth G. Strawn 2020-09-04 21:29:23 UTC
Also, this parameter should change the genkernel target from “all” to “kernel” while also adding the external initramfs generator to the callback.
Comment 6 Kenneth G. Strawn 2021-04-16 03:08:17 UTC
Has anyone seen this yet? Been a few months since it was filed.
Comment 7 Matt Turner gentoo-dev 2021-04-16 03:42:58 UTC
Yes, but it's a volunteer project.
Comment 8 Kenneth G. Strawn 2021-04-19 19:09:24 UTC
Obsoleting in favor of bug 784218 which has a patch that introduces a workaround
Comment 9 Larry the Git Cow gentoo-dev 2022-07-23 22:11:39 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f05ae38cd0cc77762dc05728b3c347abfd921ac

commit 7f05ae38cd0cc77762dc05728b3c347abfd921ac
Author:     William Hubbs <williamh@gentoo.org>
AuthorDate: 2022-07-23 22:10:53 +0000
Commit:     William Hubbs <williamh@gentoo.org>
CommitDate: 2022-07-23 22:11:34 +0000

    app-misc/spire: enable tests
    
    Closes: https://bugs.gentoo.org/740412
    Signed-off-by: William Hubbs <williamh@gentoo.org>

 app-misc/spire/spire-1.3.3.ebuild | 2 --
 1 file changed, 2 deletions(-)