Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 767988 - sys-kernel/gentoo-kernel and hostonly initramfs feature
Summary: sys-kernel/gentoo-kernel and hostonly initramfs feature
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-30 13:34 UTC by Andrej Filipcic
Modified: 2021-01-30 13:47 UTC (History)
0 users

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 Andrej Filipcic 2021-01-30 13:34:17 UTC
initramfs for sys-kernel/gentoo-kernel can be rather large, ~100MB. In some cases, where the boot partition is too small, passing "--hostonly" option to dracut would be extremely useful, where initramfs is typically 15MB. 

I have around 50 systems that would need repartitioning/reinstallation otherwise. As a workaround I modified the eclass temporarily. 

Would it be possible to implement "hostonly" USE flag or something like that for gentoo-kernel ebuilds and than pass this option accordingly to dist-kernel-utils.eclass dist-kernel_build_initramfs() function?
Comment 1 Andrej Filipcic 2021-01-30 13:47:40 UTC
Actually, there is no point in doing this. dracut.conf should be better used for it. Please, ignore the bug.