Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144733 - genkernel and unionfs
Summary: genkernel and unionfs
Status: VERIFIED WONTFIX
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-22 03:01 UTC by Isakov Alexandr
Modified: 2006-08-24 05:22 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 Isakov Alexandr 2006-08-22 03:01:53 UTC
Can you make genkernel use unionfs kernel module and userscace utils from system, not compile himself?

P.S. Sorry, my english is bad. :-)
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2006-08-22 12:43:11 UTC
Nope.

The module, at least, would have to be compiled for the kernel being built by genkernel, not the kernel it is currently running on.  Also, we try to make genkernel self-contained.  Also, we've made it quite plain in genkernel that unionfs support is completely experimental and that we don't take feature requests for it.  This request would also likely cause breakage for release-building, since not everything is compiled on the target arch when building a release.
Comment 2 Isakov Alexandr 2006-08-23 00:03:13 UTC
>The module, at least, would have to be compiled for the kernel being built by
genkernel, not the kernel it is currently running on.
Sorry, but initramfs is building after the kernel and modules compilation, isn`t it?
>Also, we try to make genkernel self-contained.
Ok. But can You add variant I proposed as an option?
>This request would also likely cause breakage for
release-building, since not everything is compiled on the target arch when
building a release.
Sorry. I can`t understand what is the problem. Support of unionfs is needed to release?
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2006-08-23 08:37:40 UTC
(In reply to comment #0)
> Can you make genkernel use unionfs kernel module and userscace utils from
> system, not compile himself?
> 
> P.S. Sorry, my english is bad. :-)

No, genkernel compiles against a target kernel (e.g. /usr/src/linux). You're saying we should randomly pull out of a module from /lib/... without even checking if it'll work properly, which is no good. The module has to be compiled against the exact same kernel tree or it just won't work; which is why genkernel compiles it anyway regardless if there is one on the system. As for the userspace utils, copying them from the system means having to copy glibc libs into the initramfs too and we're not going to do that.
Comment 4 Isakov Alexandr 2006-08-23 10:20:54 UTC
> No, genkernel compiles against a target kernel (e.g. /usr/src/linux). You're
> saying we should randomly pull out of a module from /lib/... without even
> checking if it'll work properly, which is no good.
No, you are wrong. I don`t say that. I can`t explain it perfectly, but I try:
#genkernel all --unionfs
Kernel compile/install
Kernel modules compile/install
Run emerge unionfs or wait user make it.
Then make initramfs with module build for THIS kernel.
> As for the userspace utils, copying them from the system means having to copy > glibc libs into the initramfs too and we're not going to do that.
If unionfs would (re)compiled in the time genkernel run, is it realy impossible to configure emerge to build unionfs userspace utils without glibc? If so how genkernel can make this himself???
Comment 5 Tim Yamin (RETIRED) gentoo-dev 2006-08-23 11:39:45 UTC
(In reply to comment #4)
> > No, genkernel compiles against a target kernel (e.g. /usr/src/linux). You're
> > saying we should randomly pull out of a module from /lib/... without even
> > checking if it'll work properly, which is no good.
> No, you are wrong. I don`t say that. I can`t explain it perfectly, but I try:
> #genkernel all --unionfs
> Kernel compile/install
> Kernel modules compile/install
> Run emerge unionfs or wait user make it.
> Then make initramfs with module build for THIS kernel.

genkernel is supposed to be Gentoo-agnostic, so a) we won't do that and b) what advantage does this give?

> > As for the userspace utils, copying them from the system means having to copy > glibc libs into the initramfs too and we're not going to do that.
> If unionfs would (re)compiled in the time genkernel run, is it realy impossible
> to configure emerge to build unionfs userspace utils without glibc? If so how
> genkernel can make this himself???

We compile it statically. And again, I don't see any advantage this would bring.
Comment 6 Tim Yamin (RETIRED) gentoo-dev 2006-08-23 11:40:13 UTC
Closing.
Comment 7 Isakov Alexandr 2006-08-23 23:36:21 UTC
> a) we won't do that
Ok. Can you make genkernel run some user scripts specified in config file just after kernel/modules installed and before initramfs build?
> b) what advantage does this give?
1. As You may not know unionfs sometimes used not only at boot. So I always compile it after kernel compilation. And not only it! I build: nvidia-kernel, submount, kqemu etc. If genkernel would have advantage to build such packages automatically this wil be a great advantage.
2. The unionfs from portage is newer and it`s easy to control.
3. End the last one: KERNEL MODULE THAT I HAVE BUILD WORK - MODULE THAT BUILD GENKERNEL - DON`T!

P.S. I don`t propose to replace Your method by my method. I proposed to add my method as an option. May be it would better&
Comment 8 Chris Gianelloni (RETIRED) gentoo-dev 2006-08-24 05:21:43 UTC
(In reply to comment #7)
> 1. As You may not know unionfs sometimes used not only at boot. So I always
> compile it after kernel compilation. And not only it! I build: nvidia-kernel,
> submount, kqemu etc. If genkernel would have advantage to build such packages
> automatically this wil be a great advantage.

It can --callback="emerge nvidia-kernel kqemu submount"

I guess we have not made this clear enough to you.  Stop reopening this bug.  We have marked it as WONTFIX, which means that we are not interested in this functionality.  We have *tried* to explain it to you, but you will not listen.  This is not something that the genkernel maintainers feel is a worthwhile expenditure of our time, so we are *not* going to work on it.  Please quit asking.
Comment 9 Chris Gianelloni (RETIRED) gentoo-dev 2006-08-24 05:22:22 UTC
Closing again... will be seeing about locking this bug if it is reopened.