[aur-general] Gzipped kernel modules
I am the maintainer of libguestfs in the AUR, and to run it uses insmod to load kernel modules into a specialized vm. The problem I am running into is that insmod cannot load the new gz kernel modules, so I unzipped them all to see if that would solve the problem, but now insmod does not seem to load them in the correct order. Does anyone know of a way to get insmod to load gzipped kernel modules? Or is there a way to install the latest kernel without gzipped modules? -Thomas S Hatch
11.3.2011 0.52 "Thomas S Hatch" <thatch45@gmail.com> kirjoitti:
I am the maintainer of libguestfs in the AUR, and to run it uses insmod to load kernel modules into a specialized vm.
The problem I am running into is that insmod cannot load the new gz kernel modules, so I unzipped them all to see if that would solve the problem,
but
now insmod does not seem to load them in the correct order.
Does anyone know of a way to get insmod to load gzipped kernel modules? Or is there a way to install the latest kernel without gzipped modules?
-Thomas S Hatch You can rebuild the kernel from abs and edit the PKGBUILD to not gzip the modules
On Thu, Mar 10, 2011 at 4:38 PM, jesse jaara <jesse.jaara@gmail.com> wrote:
11.3.2011 0.52 "Thomas S Hatch" <thatch45@gmail.com> kirjoitti:
I am the maintainer of libguestfs in the AUR, and to run it uses insmod
to
load kernel modules into a specialized vm.
The problem I am running into is that insmod cannot load the new gz kernel modules, so I unzipped them all to see if that would solve the problem, but now insmod does not seem to load them in the correct order.
Does anyone know of a way to get insmod to load gzipped kernel modules? Or is there a way to install the latest kernel without gzipped modules?
-Thomas S Hatch You can rebuild the kernel from abs and edit the PKGBUILD to not gzip the modules
I was afraid that would be the only answer... unfortunately we just discovered that gzipped kernel mods breaks a large portion of our virtualization backend, because we use libguestfs. I will give it a try I am still open to ideas :)
On 03/11/2011 01:38 AM, jesse jaara wrote:
11.3.2011 0.52 "Thomas S Hatch"<thatch45@gmail.com> kirjoitti:
I am the maintainer of libguestfs in the AUR, and to run it uses insmod to load kernel modules into a specialized vm.
The problem I am running into is that insmod cannot load the new gz kernel modules, so I unzipped them all to see if that would solve the problem,
but
now insmod does not seem to load them in the correct order.
Does anyone know of a way to get insmod to load gzipped kernel modules? Or is there a way to install the latest kernel without gzipped modules?
-Thomas S Hatch You can rebuild the kernel from abs and edit the PKGBUILD to not gzip the modules
that's not related to the kernel at all. module-init-tools has to be compiled with gzip support and it would be able to load both modules -- Ionuț
On Thu, Mar 10, 2011 at 4:44 PM, Ionuț Bîru <ibiru@archlinux.org> wrote:
On 03/11/2011 01:38 AM, jesse jaara wrote:
11.3.2011 0.52 "Thomas S Hatch"<thatch45@gmail.com> kirjoitti:
I am the maintainer of libguestfs in the AUR, and to run it uses insmod to load kernel modules into a specialized vm.
The problem I am running into is that insmod cannot load the new gz kernel modules, so I unzipped them all to see if that would solve the problem,
but
now insmod does not seem to load them in the correct order.
Does anyone know of a way to get insmod to load gzipped kernel modules? Or is there a way to install the latest kernel without gzipped modules?
-Thomas S Hatch
You can rebuild the kernel from abs and edit the PKGBUILD to not gzip the modules
that's not related to the kernel at all. module-init-tools has to be compiled with gzip support and it would be able to load both modules
-- Ionuț
Wait, you are saying that insmod will load gzipped mods if compiled differently?
Am 11.03.2011 00:45, schrieb Thomas S Hatch:
Wait, you are saying that insmod will load gzipped mods if compiled differently?
No. depmod, modinfo and modprobe can do it, insmod can't.
On Fri, Mar 11, 2011 at 5:50 AM, Thomas Bächler <thomas@archlinux.org>wrote:
Am 11.03.2011 00:45, schrieb Thomas S Hatch:
Wait, you are saying that insmod will load gzipped mods if compiled differently?
No. depmod, modinfo and modprobe can do it, insmod can't.
Thanks! Unfortunately I had to fix it with a dirty, dirty hack, and I will have to write a substantial patch to libguestfs to fix it upstream, but at least it works. Check out my horrid hack: https://github.com/thatch45/archpkgs/blob/master/libguestfs/libguestfs.insta... While this works, I am open to suggestions :) I also think that this script probably explains my conundrum better.
Am 11.03.2011 16:55, schrieb Thomas S Hatch:
On Fri, Mar 11, 2011 at 5:50 AM, Thomas Bächler <thomas@archlinux.org>wrote:
Am 11.03.2011 00:45, schrieb Thomas S Hatch:
Wait, you are saying that insmod will load gzipped mods if compiled differently?
No. depmod, modinfo and modprobe can do it, insmod can't.
Thanks! Unfortunately I had to fix it with a dirty, dirty hack, and I will have to write a substantial patch to libguestfs to fix it upstream, but at least it works. Check out my horrid hack: https://github.com/thatch45/archpkgs/blob/master/libguestfs/libguestfs.insta...
While this works, I am open to suggestions :) I also think that this script probably explains my conundrum better.
It looks like it is much easier to teach insmod gzip. If I see this right, it is actually trivial, although I did not try. module-init-tools didn't have a git commit for 9 months, so I don't know how fast they would accept a patch.
On Fri, Mar 11, 2011 at 9:37 AM, Thomas Bächler <thomas@archlinux.org>wrote:
Am 11.03.2011 16:55, schrieb Thomas S Hatch:
On Fri, Mar 11, 2011 at 5:50 AM, Thomas Bächler <thomas@archlinux.org wrote:
Am 11.03.2011 00:45, schrieb Thomas S Hatch:
Wait, you are saying that insmod will load gzipped mods if compiled differently?
No. depmod, modinfo and modprobe can do it, insmod can't.
Thanks! Unfortunately I had to fix it with a dirty, dirty hack, and I will have to write a substantial patch to libguestfs to fix it upstream, but at least it works. Check out my horrid hack:
https://github.com/thatch45/archpkgs/blob/master/libguestfs/libguestfs.insta...
While this works, I am open to suggestions :) I also think that this
script
probably explains my conundrum better.
It looks like it is much easier to teach insmod gzip. If I see this right, it is actually trivial, although I did not try. module-init-tools didn't have a git commit for 9 months, so I don't know how fast they would accept a patch.
Yes, that would make it easier, then the fix to libguestfs is very menial. I might look into it
Am 11.03.2011 17:41, schrieb Thomas S Hatch:
It looks like it is much easier to teach insmod gzip. If I see this right, it is actually trivial, although I did not try. module-init-tools didn't have a git commit for 9 months, so I don't know how fast they would accept a patch.
Yes, that would make it easier, then the fix to libguestfs is very menial. I might look into it
The file zlibsupport.h offers three functions. One of them is duplicated in insmod.c, but apparently without zlib support. Looking there might be a good start. However, I don't get why you need to use insmod in the first place, and why the order in which you load modules is of any concern.
On Fri, Mar 11, 2011 at 9:59 AM, Thomas Bächler <thomas@archlinux.org>wrote:
Am 11.03.2011 17:41, schrieb Thomas S Hatch:
It looks like it is much easier to teach insmod gzip. If I see this right, it is actually trivial, although I did not try. module-init-tools didn't have a git commit for 9 months, so I don't know how fast they would accept a patch.
Yes, that would make it easier, then the fix to libguestfs is very menial. I might look into it
The file zlibsupport.h offers three functions. One of them is duplicated in insmod.c, but apparently without zlib support. Looking there might be a good start.
However, I don't get why you need to use insmod in the first place, and why the order in which you load modules is of any concern.
I am not sure exactly why I need insmod either, but the libguestfs devs use it for the specialized vm (I really need to write the wiki article on this, it is very cool). But I will look into it, thanks again!
participants (4)
-
Ionuț Bîru
-
jesse jaara
-
Thomas Bächler
-
Thomas S Hatch