Created attachment 1811085 [details] quickcheck output Host is Arch Linux with kernel recently upgraded to 5.13.x libguestfs is stable 1.44.1 libguestfs no longer works for me as seen by the attached output of libguestfs-test-tool. Something is going wrong with module loading and I'm not sure why. e.g: supermin: internal insmod crc32-pclmul.ko.zst [ 0.140028] Module has invalid ELF structures insmod: init_module: crc32-pclmul.ko.zst: Invalid module format supermin: internal insmod crc32c-intel.ko.zst [ 0.140984] Module has invalid ELF structures insmod: init_module: crc32c-intel.ko.zst: Invalid module format Downgrade to kernel 5.12.x and everything works again. Any ideas? Full output attached. Thanks.
Actually, I just noticed that Arch switched module compression type from xz to zstd in the kernel config (as of 5.13.x). zstd is included in the appliance. Does libguestfs need tweaking to accommodate zstd compressed modules?
> Does libguestfs need tweaking to accommodate zstd compressed modules? I'm guessing it's actually supermin that needs tweaking. See code in src/mode_build.ml
Created attachment 1811118 [details] 0001-initrd-Support-ztd-compressed-modules.patch Yes I think supermin will need to be changed to support zstd modules. We discussed this with the Fedora community too recently. Please try the attached patch.
> Please try the attached patch Yep, works fine. Thanks!
Upstream in https://github.com/libguestfs/supermin/commit/4306a131c6cde92f8d0a2dd9376f4096ee538eff I notified the Arch maintainer yesterday.
It gave me "make[3]: *** No rule to make target 'supermin.1', needed by 'all-am'. Stop." when try to build latest upstream supermin.
I added a workaround upstream: https://github.com/libguestfs/supermin/commit/1b7b091cc10c9afa9a342a0d467bd8271034e44f But really you need to install the perldoc tools.