Can you make genkernel use unionfs kernel module and userscace utils from system, not compile himself? P.S. Sorry, my english is bad. :-)
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.
>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?
(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.
> 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???
(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.
Closing.
> 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&
(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.
Closing again... will be seeing about locking this bug if it is reopened.