-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sys-kernel/linux-image: support generating initramfs #16
Comments
@PF4Public |
Quite probable! Your script could be a separate ebuild, which could be a conditional build-time dependency for sys-kernel/linux-image. |
Great idea to create an ebuild out of that! If you are using Gentoo and your current Kernel directory points to or is In my opinion Hö. Wir könnten uns hier theoretisch auf Deutsch unterhalten und nur wenige Leute würden uns hier verstehen. 😄 |
And for it to be invoked from another ebuild (like sys-kernel/linux-image for instance) or by end-user, it needs to be modified a bit to become more universal.
Indeed, that's what I'm writing about. You have a lot of variables hardcoded. So, if I'm using you script to build an initramfs for sys-kernel/linux-image, it might not go well, as portage jails every compilation into a sandbox with limited outside interactions, so the assumption of kernel location in
… und andere würden sich den Kopf darüber zerbrechen, worum es doch geht. :D Es wäre aber nicht so nett von uns, besonders wenn alle englisch schreiben. ;) |
Yes, let's keep it real. :)
Oh yes, I know what you mean, like having the opportunity to define the compression method and so forth.
Yeah, the sandbox. But it has its purpose to not screw things up on the actual filesystem, which is good! When I get there to create an ebuild, I will see what I have to adapt. I am still new to this topic and I am using your repository as inspiration source already. :D Alright, I will come back sooner or later about this topic! -keks24 |
Exactly! You either play by the rules, or else need to implement ugly kludges in your code.
You might also find interesting (and hopefully useful) this ebuild and a corresponding source repository. I mean, for the inspiration purposes, I have no idea, whether those scripts themselves are useful for you. |
Recently I discovered that with
I mean, this way kernel compilation and initramfs generation could be separated and not depended on each other. |
It is actually the opposite. If you specify a |
Quite reasonable. There must be a configurable option then. |
sys-kernel/gentoo-kernel::gentoo does build and install the kernel with initramfs USE flag. Can use custom .config if needed. More info at https://wiki.gentoo.org/wiki/Kernel and https://wiki.gentoo.org/wiki/Project:Distribution_Kernel I use this as a backup kernel along with my custom config zen kernel that I use all the time. |
@Techwolf That's right! Unfortunately it cannot build a kernel without loadable modules support and as such I cannot use it. |
Implementing (someday…) support for generating initramfs in sys-kernel/linux-image would be nice.
The text was updated successfully, but these errors were encountered: